-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IM-459 Use Klab_Authorization header instead Authorization and add se…
…ssion in EngineSessionController EngineSessionController uses PreauthenticationFilter to set the session in the principal. Now the principal is JWT; the session is retrieved from request headers.
- Loading branch information
1 parent
b1e1386
commit 9f69087
Showing
7 changed files
with
165 additions
and
52 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...tegratedmodelling.klab.api/src/org/integratedmodelling/klab/api/auth/KlabHttpHeaders.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,20 @@ | ||
package org.integratedmodelling.klab.api.auth; | ||
|
||
/** | ||
* Defines constants for common HTTP headers. | ||
* | ||
* <p>This interface provides a set of predefined header names used | ||
* in HTTP requests and responses. These constants can be used to | ||
* avoid hardcoding string values and reduce errors.</p> | ||
* | ||
* @author Kristina | ||
*/ | ||
|
||
public interface KlabHttpHeaders { | ||
|
||
/** | ||
* Designed to send session information with requests. | ||
**/ | ||
public static final String KLAB_AUTHORIZATION = "Klab_Authorization"; | ||
|
||
} |
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
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
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
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
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
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