forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sso): Just-In-Time User & Group Provisioning on SSO Login (oidc) (…
- Loading branch information
1 parent
b560d20
commit 96b4471
Showing
32 changed files
with
974 additions
and
277 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
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,27 @@ | ||
package react.auth; | ||
|
||
public class ConfigUtil { | ||
|
||
private ConfigUtil() { } | ||
|
||
public static String getRequired( | ||
final com.typesafe.config.Config configs, | ||
final String path) { | ||
if (!configs.hasPath(path)) { | ||
throw new IllegalArgumentException( | ||
String.format("Missing required config with path %s", path)); | ||
} | ||
return configs.getString(path); | ||
} | ||
|
||
public static String getOptional | ||
(final com.typesafe.config.Config configs, | ||
final String path, | ||
final String defaultVal) { | ||
if (!configs.hasPath(path)) { | ||
return defaultVal; | ||
} | ||
return configs.getString(path); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.