Skip to main content

providers/asgardeo

Built-in Asgardeo integration.

default()​

Add Asgardeo login to your page.

Documentation​

https://wso2.com/asgardeo/docs/guides/authentication

Instructions​

Create a .env file in the project root add the following entries:

These values can be collected from the application created.

ASGARDEO_CLIENT_ID=<Copy client ID from protocol tab here>
ASGARDEO_CLIENT_SECRET=<Copy client from protocol tab here>
ASGARDEO_ISSUER=<Copy the issuer url from the info tab here>

In pages/api/auth/[...nextauth].js find or add the Asgardeo entries:

import Asgardeo from "next-auth/providers/asgardeo";
...
providers: [
Asgardeo({
clientId: process.env.ASGARDEO_CLIENT_ID,
clientSecret: process.env.ASGARDEO_CLIENT_SECRET,
issuer: process.env.ASGARDEO_ISSUER
}),
],

...

Resources​

See​

Notes​

By default, Auth.js assumes that the Asgardeo provider is based on the OAuth 2 specification.

tip

The Asgardeo provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.

Disclaimer

If you think you found a bug in the default configuration, you can open an issue.

Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.

default(config: OIDCUserConfig<AsgardeoProfile>): OIDCConfig<AsgardeoProfile>

Parameters​

ParameterType
configOIDCUserConfig<AsgardeoProfile>

Returns​

OIDCConfig<AsgardeoProfile>