Skip to content

JumpCloudProvider

Reference doc for the `JumpCloudProvider`.

Use this provider to authenticate with JumpCloud.

import { JumpCloudProvider } from "@openauthjs/openauth/provider/jumpcloud"
export default issuer({
providers: {
jumpcloud: JumpCloudProvider({
clientId: "1234567890",
clientSecret: "0987654321"
})
}
})

Methods

JumpCloudProvider

JumpCloudProvider(config)

Parameters

Returns Provider

Create a JumpCloud OAuth2 provider.

JumpCloudProvider({
clientId: "1234567890",
clientSecret: "0987654321"
})

JumpCloudConfig

JumpCloudConfig.clientID

Type string

The client ID.

This is just a string to identify your app.

{
clientID: "my-client"
}

JumpCloudConfig.clientSecret

Type string

The client secret.

This is a private key that’s used to authenticate your app. It should be kept secret.

{
clientSecret: "0987654321"
}

JumpCloudConfig.query?

Type Record<string, string>

Any additional parameters that you want to pass to the authorization endpoint.

{
query: {
access_type: "offline",
prompt: "consent"
}
}

JumpCloudConfig.scopes

Type string[]

A list of OAuth scopes that you want to request.

{
scopes: ["email", "profile"]
}