Skip to content

Commit

Permalink
fix(authentication-service): added idp server controller for login an…
Browse files Browse the repository at this point in the history
…d discovery endpoint

BREAKING CHANGE:
  • Loading branch information
prernagp90 committed Nov 5, 2024
1 parent 17df94b commit c811258
Show file tree
Hide file tree
Showing 24 changed files with 1,252 additions and 253 deletions.
2 changes: 1 addition & 1 deletion services/authentication-service/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ AZURE_AUTH_COOKIE_IV=
AUTH0_DOMAIN=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
AUTH0_CALLBACK_URL=
AUTH0_CALLBACK_URL=
4 changes: 2 additions & 2 deletions services/authentication-service/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"editor.trimAutoWhitespace": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
"source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},

"files.exclude": {
Expand Down
93 changes: 92 additions & 1 deletion services/authentication-service/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,40 @@
"contact": {}
},
"paths": {
"/.well-known/openid-configuration": {
"get": {
"x-controller-name": "IdentityServerController",
"x-operation-name": "getConfig",
"tags": [
"IdentityServerController"
],
"security": [
{
"HTTPBearer": []
}
],
"description": "To get the openid configuration",
"responses": {
"200": {
"description": "OpenId Configuration",
"content": {}
},
"400": {
"description": "The syntax of the request entity is incorrect."
},
"401": {
"description": "Invalid Credentials."
},
"404": {
"description": "The entity requested does not exist."
},
"422": {
"description": "The syntax of the request entity is incorrect"
}
},
"operationId": "IdentityServerController.getConfig"
}
},
"/active-users/{range}": {
"get": {
"x-controller-name": "LoginActivityController",
Expand Down Expand Up @@ -1654,6 +1688,38 @@
"operationId": "LogoutController.cognitoLogout"
}
},
"/connect/auth": {
"post": {
"x-controller-name": "IdentityServerController",
"x-operation-name": "connectAuth",
"tags": [
"IdentityServerController"
],
"description": "POST Call for idp login",
"responses": {
"200": {
"description": "Token Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TokenResponse"
}
}
}
}
},
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/IdpAuthRequest"
}
}
}
},
"operationId": "IdentityServerController.connectAuth"
}
},
"/google/logout": {
"post": {
"x-controller-name": "LogoutController",
Expand Down Expand Up @@ -2055,7 +2121,6 @@
],
"additionalProperties": false
},
"Function": {},
"AuthRefreshTokenRequest": {
"title": "AuthRefreshTokenRequest",
"type": "object",
Expand Down Expand Up @@ -2364,6 +2429,7 @@
],
"additionalProperties": false
},
"Function": {},
"ForgetPasswordDto": {
"title": "ForgetPasswordDto",
"type": "object",
Expand Down Expand Up @@ -2580,6 +2646,31 @@
],
"additionalProperties": false
},
"IdpAuthRequest": {
"title": "IdpAuthRequest",
"type": "object",
"description": "This is signature for idp authentication request.",
"properties": {
"client_id": {
"type": "string",
"description": "This property is supposed to be a string and is a required field"
},
"client_secret": {
"type": "string",
"description": "This property is supposed to be a string and is a required field"
},
"auth_method": {
"type": "string",
"description": "This property is supposed to be a string and is a required field"
}
},
"required": [
"client_id",
"client_secret",
"auth_method"
],
"additionalProperties": false
},
"loopback.Count": {
"type": "object",
"title": "loopback.Count",
Expand Down
Loading

0 comments on commit c811258

Please sign in to comment.