Added OIDC and OAuth 2.0 issue(#2587)#2862
Added OIDC and OAuth 2.0 issue(#2587)#2862555vedant wants to merge 1 commit intouPortal-Project:masterfrom
Conversation
|
@ChristianMurphy @jonathanmtran sir please once review this PR and pls suggest changes if there ? |
jonathanmtran
left a comment
There was a problem hiding this comment.
There is documentation for endpoints that do not exist in uPortal ...
Did you actually test the endpoints to see if uPortal responds as expected?
| - **HTTP Method**: `GET` | ||
| - **Example Request**: | ||
| ``` | ||
| GET /uPortal/api/v5-1/oauth/authorize?response_type=code&client_id={client_id}&redirect_uri={redirect_uri}&scope=openid&state={state}&claims={custom_claims} |
There was a problem hiding this comment.
This endpoint does not exist
| - **HTTP Method**: `POST` | ||
| - **Example Request**: | ||
| ``` | ||
| POST /uPortal/api/v5-1/oauth/token |
There was a problem hiding this comment.
This endpoint does not exist
| - **HTTP Method**: `GET` | ||
| - **Example Request**: | ||
| ``` | ||
| GET /uPortal/api/v5-1/oauth/logout?post_logout_redirect_uri={redirect_uri}&id_token_hint={id_token} |
There was a problem hiding this comment.
This endpoint does not exist
|
|
||
| **Example Request**: | ||
| ``` | ||
| GET /uPortal/api/v5-1/oauth/authorize?response_type=code&client_id={client_id}&redirect_uri={redirect_uri}&scope=openid&claims={"userinfo":{"user_id":{"essential":true},"roles":{"values":["student","faculty"]}}} |
There was a problem hiding this comment.
This endpoint does not exist
|
|
||
| **Example Request**: | ||
| ``` | ||
| POST /uPortal/api/v5-1/oauth/token |
There was a problem hiding this comment.
This endpoint does not exist
|
|
||
| **Example Request**: | ||
| ``` | ||
| GET /uPortal/api/v5-1/oauth/userinfo |
There was a problem hiding this comment.
This endpoint does not exist
| - **HTTP Method**: `GET` | ||
| - **Example Request**: | ||
| ``` | ||
| GET /uPortal/api/v5-1/oauth/userinfo |
There was a problem hiding this comment.
The path is incorrect
There was a problem hiding this comment.
The path is incorrect
what is correct path ??
|
@jonathanmtran sir please can you provide me some resources from whom i can make endpoints and path correctly ?? |
@555vedant The actual API provide swagger docs, follow @jonathanmtran's recommendation here The swagger API can be switched on with https://uportal-project.github.io/uPortal/developer/other/API.html |
this pull request outlines OIDC and OAuth 2.0 doc implementation in uPortal. It covers OIDC endpoints, group and claims filters, and OAuth endpoint usage for clients, aiding developers in secure user authentication and profile information retrieval.
Key features:
1)Detailed descriptions and examples of OIDC endpoints.
2)Configuration for group and claims filters.
3)Client registration and scope definitions.
4)Security considerations for token management.
References:
1)Official OIDC and OAuth 2.0 specifications.
2)uPortal documentation links.