feat: Implement OAuth2 authentication with Microsoft, Google, and PocketId
- Added JWT configuration to appsettings.json for secure token handling. - Updated config.json to include OAuth provider details for Microsoft, Google, and PocketId. - Added Microsoft icon SVG for UI representation. - Refactored app.config.ts to use a custom AuthInterceptor for managing access tokens. - Enhanced auth route guard to handle asynchronous authentication checks. - Created new auth models for structured request and response handling. - Developed a callback component to manage user login states and transitions. - Updated side-login component to support multiple OAuth providers with loading states. - Implemented authentication service methods for handling OAuth login flows and token management. - Added error handling and user feedback for authentication processes.
This commit is contained in:
@@ -1,4 +1,29 @@
|
||||
{
|
||||
"Jwt": {
|
||||
"SecretKey": "your-very-secure-secret-key-that-should-be-at-least-32-characters-long",
|
||||
"Issuer": "https://api.yourapp.com",
|
||||
"Audience": "https://yourapp.com",
|
||||
"ExpirationMinutes": 60
|
||||
},
|
||||
"OAuth": {
|
||||
"Providers": {
|
||||
"microsoft": {
|
||||
"Authority": "https://login.microsoftonline.com/4a0d328f-1f94-4920-b67e-4275737d02a5/v2.0",
|
||||
"ClientId": "eb03f08b-280a-46c7-9700-b012caa46000",
|
||||
"ValidAudiences": ["eb03f08b-280a-46c7-9700-b012caa46000"]
|
||||
},
|
||||
"google": {
|
||||
"Authority": "https://accounts.google.com",
|
||||
"ClientId": "1000025801082-09ikmt61a9c9vbdjhpdab9b0ui3vdnij.apps.googleusercontent.com",
|
||||
"ValidAudiences": ["1000025801082-09ikmt61a9c9vbdjhpdab9b0ui3vdnij.apps.googleusercontent.com"]
|
||||
},
|
||||
"pocketid": {
|
||||
"Authority": "https://identity.lesko.me",
|
||||
"ClientId": "21131567-fea1-42a2-8907-21abd874eff8",
|
||||
"ValidAudiences": ["21131567-fea1-42a2-8907-21abd874eff8"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Authentication": {
|
||||
"PocketId": {
|
||||
"Authority": "https://identity.lesko.me",
|
||||
@@ -16,5 +41,4 @@
|
||||
},
|
||||
"AllowedHosts": "localhost",
|
||||
"CorsOrigins": "https://localhost:5001,http://localhost:4200,http://localhost:5000"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user