Stephan Richter
4 months ago
31 changed files with 82 additions and 56 deletions
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.cookies; |
||||
package de.srsoftware.http; |
||||
|
||||
import static de.srsoftware.utils.Optionals.nullable; |
||||
import static java.lang.System.Logger.Level.*; |
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.cookies; |
||||
package de.srsoftware.http; |
||||
|
||||
|
||||
import com.sun.net.httpserver.HttpExchange; |
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
|
||||
import de.srsoftware.oidc.api.data.AuthResult; |
||||
import de.srsoftware.oidc.api.data.Authorization; |
||||
import de.srsoftware.oidc.api.data.Client; |
||||
import de.srsoftware.oidc.api.data.User; |
||||
import java.time.Instant; |
||||
import java.util.Collection; |
||||
import java.util.Optional; |
||||
|
||||
public interface AuthorizationService { |
||||
AuthorizationService authorize(User user, Client client, Collection<String> scopes, Instant expiration); |
||||
Optional<Authorization> consumeAuthorization(String authCode); |
||||
AuthResult getAuthorization(User user, Client client, Collection<String> scopes); |
||||
} |
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
|
||||
import java.time.Instant; |
||||
import java.util.Collection; |
||||
import java.util.Optional; |
||||
|
||||
public interface ClaimAuthorizationService { |
||||
ClaimAuthorizationService authorize(User user, Client client, Collection<String> scopes, Instant expiration); |
||||
Optional<Authorization> consumeAuthorization(String authCode); |
||||
AuthResult getAuthorization(User user, Client client, Collection<String> scopes); |
||||
} |
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
package de.srsoftware.oidc.api.data; |
||||
|
||||
import java.util.Set; |
||||
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
package de.srsoftware.oidc.api.data; |
||||
|
||||
public record Authorization(String clientId, String userId, AuthorizedScopes scopes) { |
||||
} |
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
package de.srsoftware.oidc.api.data; |
||||
|
||||
import java.time.Instant; |
||||
import java.util.Set; |
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
package de.srsoftware.oidc.api.data; |
||||
|
||||
|
||||
import static de.srsoftware.oidc.api.Constants.*; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
package de.srsoftware.oidc.api.data; |
||||
|
||||
public enum Permission { MANAGE_CLIENTS } |
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
package de.srsoftware.oidc.api.data; |
||||
|
||||
import java.time.Instant; |
||||
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
/* © SRSoftware 2024 */ |
||||
package de.srsoftware.oidc.api; |
||||
package de.srsoftware.oidc.api.data; |
||||
|
||||
import java.util.*; |
||||
|
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
rootProject.name = 'LightOIDC' |
||||
include 'de.srsoftware.http' |
||||
include 'de.srsoftware.logging' |
||||
include 'de.srsoftware.oidc.api' |
||||
include 'de.srsoftware.oidc.app' |
||||
include 'de.srsoftware.oidc.web' |
||||
include 'de.srsoftware.oidc.backend' |
||||
include 'de.srsoftware.oidc.datastore.file' |
||||
include 'de.srsoftware.cookies' |
||||
include 'de.srsoftware.logging' |
||||
include 'de.srsoftware.oidc.web' |
||||
include 'de.srsoftware.utils' |
||||
|
||||
|
Loading…
Reference in new issue