Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alosaur/src/security/oauth/base/oauth-options.ts>OAuthOptions

Alosaur - Deno web framework with many decorators
Go to Latest
interface OAuthOptions
import { type OAuthOptions } from "https://deno.land/x/alosaur@v0.31.1/src/security/oauth/base/oauth-options.ts";

Properties

hostname: string

Haostame of app, this url uses in redirect uri (Ex: 'http://localhost:8000/signin-google')

callbackPath: string

Route to redirect this url to sign in, this identifer for session session.get('external-login-signin-google')

clientId: string

Provider-assigned client id.

clientSecret: string

Provider-assigned client secret.

authorizationEndpoint: string

URI where the client will be redirected to authenticate.

tokenEndpoint: string

URI the middleware will access to exchange the OAuth token.

userInformationEndpoint: string

URI the middleware will access to obtain the user information

optional
scope: string

Scopes for sending authorizationEndpoint

successLoginPath: string

External register route, for redirect after success provider login

errorLoginPath: string

External register route, for redirect after error provider login