Skip to main content
Module

x/dashport/types.ts

Local and OAuth authentication middleware for Deno
Latest
import * as dashport from "https://deno.land/x/dashport@v1.2.1/types.ts";

Interfaces

The form the information from strategies should come back in

Should contain the same properties and methods defined by Oak https://github.com/oakserver/oak

All Dashport strategies are classes that must contain a router method

At the bare minimum, OAuth 2.0 providers will require a client ID, client secret, and redirect URI. The remaining options depend on the OAuth 2.0 provider, such as scope or state

All OAuth 2.0 providers will provide access tokens

Different OAuths will return different user information in different structures. Dashport strategies should break down and reconstruct the user info into the standardized UserProfile below