next-auth
Version:
Authentication for Next.js
31 lines (27 loc) • 654 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Osso;
function Osso(options) {
return {
id: "osso",
name: "SAML SSO",
type: "oauth",
version: "2.0",
params: {
grant_type: "authorization_code"
},
accessTokenUrl: `https://${options.domain}/oauth/token`,
authorizationUrl: `https://${options.domain}/oauth/authorize?response_type=code`,
profileUrl: `https://${options.domain}/oauth/me`,
profile(profile) {
return {
id: profile.id,
name: profile.name || profile.email,
email: profile.email
};
},
...options
};
}