Skip to content

Forward directly to specific provider #1019

Open
@dev-yann

Description

@dev-yann

Describe the feature

Login process always redirect to api/auth/signin or api/auth/signin/:provider. It seems that is not possible to forward directly to OAUTH provider login page like github or keycloak. I would like to redirect my user directly on oauth provider. I didn't find any working examples with this feature.

How would you implement this?

It would be perfect if we can provide this feature in NuxtAuthHandlers. Maybe like this :

export default NuxtAuthHandler({
    providers: [
        KeycloakProvider.default({
            name: 'keycloak',
            id: 'keycloak',
            clientId: 'client-id',
            clientSecret: '624e6283-c47b-4db5-ae5e-e9aaab505f09',
            issuer: '...',
        }),
       forward: ['keycloak']
    ],

Additional information

  • Would you be willing to help implement this feature?

Provider

  • AuthJS
  • Local
  • Refresh
  • New Provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA question about NuxtAuth

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions