-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from supertokens/feat/oauth/allow-list
Feat/oauth/allow list
- Loading branch information
Showing
2 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/io/supertokens/pluginInterface/oauth/OAuthClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.supertokens.pluginInterface.oauth; | ||
|
||
public class OAuthClient { | ||
public final String clientId; | ||
public final String clientSecret; | ||
public final boolean isClientCredentialsOnly; | ||
public final boolean enableRefreshTokenRotation; | ||
|
||
public OAuthClient(String clientId, String clientSecret, boolean isClientCredentialsOnly, boolean enableRefreshTokenRotation) { | ||
this.clientId = clientId; | ||
this.clientSecret = clientSecret; | ||
this.isClientCredentialsOnly = isClientCredentialsOnly; | ||
this.enableRefreshTokenRotation = enableRefreshTokenRotation; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters