Files
probo/pkg/server/api/connect/v1/graphql/oauth2.graphql
Bryan Frimin 383ea5a2d4 Retrict some query and mutation to only session
Signed-off-by: Bryan Frimin <bryan@probo.com>
2026-06-02 17:43:21 -07:00

43 lines
771 B
GraphQL

extend type Mutation {
authorizeDevice(
input: AuthorizeDeviceInput!
): AuthorizeDevicePayload @authentication(required: PRESENT) @sessionOnly
approveConsent(
input: ApproveConsentInput!
): ApproveConsentPayload @authentication(required: PRESENT) @sessionOnly
}
input AuthorizeDeviceInput {
userCode: String!
}
type AuthorizeDevicePayload {
success: Boolean!
consentId: ID
}
type Consent implements Node {
id: ID!
application: Application! @goField(forceResolver: true)
scopes: [String!]!
}
type Application implements Node {
id: ID!
name: String!
logoUrl: String
url: String
}
input ApproveConsentInput {
consentId: ID!
approved: Boolean!
}
type ApproveConsentPayload {
redirectURL: String
deviceAuthorized: Boolean
}