Introduce authorizations with Rajska
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -282,13 +282,17 @@ export const LOGGED_USER_MEMBERSHIPS = gql`
|
||||
|
||||
export const IDENTITIES = gql`
|
||||
query Identities {
|
||||
identities {
|
||||
...ActorFragment
|
||||
loggedUser {
|
||||
actors {
|
||||
...ActorFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
${ACTOR_FRAGMENT}
|
||||
`;
|
||||
|
||||
|
||||
|
||||
export const PERSON_MEMBERSHIPS = gql`
|
||||
query PersonMemberships($id: ID!) {
|
||||
person(id: $id) {
|
||||
|
||||
@@ -14,9 +14,9 @@ export const AUTH_APPLICATION = gql`
|
||||
export const AUTORIZE_APPLICATION = gql`
|
||||
mutation AuthorizeApplication(
|
||||
$applicationClientId: String!
|
||||
$redirectURI: String
|
||||
$redirectURI: String!
|
||||
$state: String
|
||||
$scope: String
|
||||
$scope: String!
|
||||
) {
|
||||
authorizeApplication(
|
||||
clientId: $applicationClientId
|
||||
@@ -26,6 +26,23 @@ export const AUTORIZE_APPLICATION = gql`
|
||||
) {
|
||||
code
|
||||
state
|
||||
clientId
|
||||
scope
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const AUTORIZE_DEVICE_APPLICATION = gql`
|
||||
mutation AuthorizeDeviceApplication(
|
||||
$applicationClientId: String!
|
||||
$userCode: String
|
||||
) {
|
||||
authorizeDeviceApplication(
|
||||
clientId: $applicationClientId
|
||||
userCode: $userCode
|
||||
) {
|
||||
clientId
|
||||
scope
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -72,6 +72,7 @@ export const CONFIG = gql`
|
||||
features {
|
||||
groups
|
||||
eventCreation
|
||||
antispam
|
||||
}
|
||||
restrictions {
|
||||
onlyAdminCanCreateGroups
|
||||
|
||||
@@ -226,15 +226,6 @@ export const FETCH_GROUP = gql`
|
||||
${RESOURCE_METADATA_BASIC_FIELDS_FRAGMENT}
|
||||
`;
|
||||
|
||||
export const FETCH_GROUP_BY_ID = gql`
|
||||
query FetchGroupById($id: ID!) {
|
||||
groupById(id: $name) {
|
||||
...GroupFullFields
|
||||
}
|
||||
}
|
||||
${GROUP_FIELDS_FRAGMENTS}
|
||||
`;
|
||||
|
||||
export const GET_GROUP = gql`
|
||||
query GetGroup(
|
||||
$id: ID!
|
||||
@@ -407,6 +398,7 @@ export const GROUP_TIMELINE = gql`
|
||||
openness
|
||||
physicalAddress {
|
||||
id
|
||||
originId
|
||||
}
|
||||
banner {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user