@hazeljs/oauth 0.7.9 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -89,9 +89,7 @@ export class AuthController {
|
|
|
89
89
|
@Get('callback')
|
|
90
90
|
async callback(@Query() q: { code: string; state: string }, @Req() req: Request) {
|
|
91
91
|
const { codeVerifier } = getFromCookies(req);
|
|
92
|
-
const result = await this.oauth.handleCallback(
|
|
93
|
-
'google', q.code, q.state, codeVerifier
|
|
94
|
-
);
|
|
92
|
+
const result = await this.oauth.handleCallback('google', q.code, q.state, codeVerifier);
|
|
95
93
|
// result: { accessToken, refreshToken?, expiresAt?, user }
|
|
96
94
|
return result;
|
|
97
95
|
}
|
|
@@ -100,13 +98,13 @@ export class AuthController {
|
|
|
100
98
|
|
|
101
99
|
## Supported Providers
|
|
102
100
|
|
|
103
|
-
| Provider
|
|
104
|
-
|
|
105
|
-
| Google
|
|
106
|
-
| Microsoft | Yes
|
|
107
|
-
| GitHub
|
|
108
|
-
| Facebook
|
|
109
|
-
| Twitter
|
|
101
|
+
| Provider | PKCE | Default Scopes |
|
|
102
|
+
| --------- | ---- | ---------------------- |
|
|
103
|
+
| Google | Yes | openid, profile, email |
|
|
104
|
+
| Microsoft | Yes | openid, profile, email |
|
|
105
|
+
| GitHub | No | user:email |
|
|
106
|
+
| Facebook | No | email, public_profile |
|
|
107
|
+
| Twitter | Yes | users.read, tweet.read |
|
|
110
108
|
|
|
111
109
|
## SAML Configuration (Multi-IdP)
|
|
112
110
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/oauth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "OAuth 2.0 and SAML SSO module for HazelJS - Google, Microsoft, GitHub, and enterprise IdPs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@hazeljs/core": ">=0.2.0-beta.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "e0ed98ca074dd4f7472816d3c32ef576900dcca6"
|
|
58
58
|
}
|