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

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

Alosaur - Deno web framework with many decorators
Go to Latest
interface OAuthOptions
Re-export
import { type OAuthOptions } from "https://deno.land/x/alosaur@v0.33.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