-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
src/main/java/dev/rexijie/oauth/oauth2server/keys/ApplicationKeySource.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,7 @@ | ||
package dev.rexijie.oauth.oauth2server.keys; | ||
|
||
import com.nimbusds.jose.jwk.source.JWKSecurityContextJWKSet; | ||
|
||
public class ApplicationKeySource extends JWKSecurityContextJWKSet { | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/dev/rexijie/oauth/oauth2server/keys/context/KeyContext.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,19 @@ | ||
package dev.rexijie.oauth.oauth2server.keys.context; | ||
|
||
import com.nimbusds.jose.jwk.JWK; | ||
import com.nimbusds.jose.proc.JWKSecurityContext; | ||
|
||
import java.util.List; | ||
|
||
public class KeyContext extends JWKSecurityContext { | ||
|
||
/** | ||
* Constructs a {@code JWKSecurityContext} with the provided | ||
* parameters. | ||
* | ||
* @param keys The list of keys. | ||
*/ | ||
public KeyContext(List<JWK> keys) { | ||
super(keys); | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
src/main/java/dev/rexijie/oauth/oauth2server/token/granter/RefreshTokenGranter.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,25 @@ | ||
package dev.rexijie.oauth.oauth2server.token.granter; | ||
|
||
import dev.rexijie.oauth.oauth2server.api.domain.AuthorizationRequest; | ||
import dev.rexijie.oauth.oauth2server.services.token.TokenServices; | ||
import org.springframework.security.core.Authentication; | ||
import org.springframework.security.oauth2.core.OAuth2Token; | ||
import reactor.core.publisher.Mono; | ||
|
||
// TODO (Implement) | ||
public class RefreshTokenGranter implements TokenGranter { | ||
|
||
public RefreshTokenGranter(TokenServices tokenServices) { | ||
|
||
} | ||
|
||
@Override | ||
public Mono<AuthorizationRequest> validateRequest(Authentication authentication, AuthorizationRequest authorizationRequest) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Mono<OAuth2Token> grantToken(Authentication authentication, AuthorizationRequest authorizationRequest) { | ||
return null; | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/java/dev/rexijie/oauth/oauth2server/api/constants/Endpoints.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,9 @@ | ||
package dev.rexijie.oauth.oauth2server.api.constants; | ||
|
||
public interface Endpoints { | ||
String OAUTH_BASE_PATH = "/oauth"; | ||
String OIDC_BASE = "/openid"; | ||
String API_BASE = "/api"; | ||
String CLIENT_API_BASE = "/clients"; | ||
String USER_API_BASE = "/users"; | ||
} |