-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jans-client-api): Use injectable operations and remove servicepr…
…ovider (#1643) * feat(jans-client-api):Modify injection services in operations * feat(jans-client-api):Change operations to request scope, and rmove Processor * feat(jans-client-api):remove explicit authorization headers from endpoints * feat(jans-client-api):remove BaseOperation * feat(jans-client-api):Add Filter Authorization * fix(jans-client-api):remove unused comments AppInitializer * feat(jans-client-api):include ProtectedApi annotation into jans-client-api * fix(jans-client-api):move validateIpAddressAllowed from AuthorizationFilter to BaseOperation to control IP in all cases * feat(jans-client-api):remove Command and CommandType * feat(jans-client-api):remove authorizationRpId validation using body params, now is mandatory in header
- Loading branch information
1 parent
6d8cff6
commit 982cab3
Showing
70 changed files
with
1,309 additions
and
1,225 deletions.
There are no files selected for viewing
84 changes: 0 additions & 84 deletions
84
jans-client-api/common/src/main/java/io/jans/ca/common/Command.java
This file was deleted.
Oops, something went wrong.
92 changes: 0 additions & 92 deletions
92
jans-client-api/common/src/main/java/io/jans/ca/common/CommandType.java
This file was deleted.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
jans-client-api/common/src/main/java/io/jans/ca/common/rest/ProtectedApi.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,23 @@ | ||
/* | ||
* Janssen Project software is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. | ||
* | ||
* Copyright (c) 2020, Janssen Project | ||
*/ | ||
|
||
package io.jans.ca.common.rest; | ||
|
||
import jakarta.ws.rs.NameBinding; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@NameBinding | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE, ElementType.METHOD }) | ||
public @interface ProtectedApi { | ||
|
||
String[] scopes() default {}; | ||
|
||
} |
51 changes: 0 additions & 51 deletions
51
jans-client-api/common/src/test/java/io/jans/ca/common/JsonTest.java
This file was deleted.
Oops, something went wrong.
131 changes: 0 additions & 131 deletions
131
jans-client-api/server/src/main/java/io/jans/ca/server/Processor.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.