-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WebLogic to Orchestrator interface (#34)
- Loading branch information
Showing
2 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package weblogic | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
type Config struct { | ||
// RSAPrivateKeyPEM is the pem-encoded RSA PKCS1 private key that will be used to | ||
// sign the JWT. | ||
RSAPrivateKeyPEM string | ||
|
||
// Subject is the user's unique identifier. This value will be mapped to the | ||
// JWT's 'sub' claim. | ||
Subject string | ||
|
||
// Lifetime is the duration of the token's lifetime. This value will be mapped | ||
// to the JWT's 'exp' claim. The Lifetime should generally be set to match the | ||
// lifetime of a user's session. | ||
Lifetime time.Duration | ||
} | ||
|
||
type Provider interface { | ||
// NewSignedJWT returns a signed JWT that the WebLogic Identity Asserter module | ||
// will consume in order to build its identity context. | ||
NewSignedJWT(Config) (string, error) | ||
} |