-
Notifications
You must be signed in to change notification settings - Fork 29
New module with OAuth2 provider implementation #282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #282 +/- ##
============================================
+ Coverage 44.39% 45.71% +1.31%
- Complexity 1571 1620 +49
============================================
Files 297 300 +3
Lines 11505 11807 +302
Branches 1124 1146 +22
============================================
+ Hits 5108 5397 +289
- Misses 5988 5999 +11
- Partials 409 411 +2 ☔ View full report in Codecov by Sentry. |
9b56846
to
1f83505
Compare
Added examples of usage with a static token and with a RSA private key |
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2Token.java
Outdated
Show resolved
Hide resolved
private static final Gson GSON = new Gson(); | ||
|
||
private final Clock clock; | ||
private final String endpoint; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tokenEndpoint
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java
Outdated
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenSource.java
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenSource.java
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java
Outdated
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java
Show resolved
Hide resolved
auth-providers/oauth2-provider/src/main/java/tech/ydb/auth/OAuth2TokenExchangeProvider.java
Outdated
Show resolved
Hide resolved
92c45b4
to
e4d7f72
Compare
Fix #272