Module

x/alosaur/src/security/oauth/mod.ts>OAuthOptions

Alosaur - Deno web framework with many decorators
Go to Latest
interface OAuthOptions
import { type OAuthOptions } from "https://dotland.deno.dev/x/alosaur@v0.35.0/src/security/oauth/mod.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

import OAuthOptions
import { OAuthOptions } from "https://dotland.deno.dev/x/alosaur@v0.35.0/src/security/oauth/mod.ts";