com.okta.authn.sdk.client.AuthenticationClients Java Examples
The following examples show how to use
com.okta.authn.sdk.client.AuthenticationClients.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ExampleApplication.java From okta-auth-java with Apache License 2.0 | 6 votes |
private void configureJersey(JerseyEnvironment jersey) { // Load any resource in the resources package String baseResourcePackage = getClass().getPackage().getName() + ".resources"; jersey.packages(baseResourcePackage); AuthenticationClient client = AuthenticationClients.builder() .build(); // use @Inject to bind the DAOs jersey.register(new AbstractBinder() { @Override protected void configure() { bind(new DefaultStormtrooperDao()).to(StormtrooperDao.class); bind(new DefaultTieCraftDao()).to(TieCraftDao.class); bind(client).to(AuthenticationClient.class); } }); }
Example #2
Source File: OktaConfiguration.java From cerberus with Apache License 2.0 | 5 votes |
@Bean AuthenticationClient authenticationClient( OktaConfigurationProperties oktaConfigurationProperties) { System.setProperty("okta.client.token", oktaConfigurationProperties.getApiKey()); return AuthenticationClients.builder() .setOrgUrl(oktaConfigurationProperties.getBaseUrl()) .build(); }
Example #3
Source File: ReadmeSnippets.java From okta-auth-java with Apache License 2.0 | 4 votes |
private void createClient() throws AuthenticationException { AuthenticationClient client = AuthenticationClients.builder() .setOrgUrl("https://{yourOktaDomain}") .build(); }
Example #4
Source File: ContainerActivity.java From samples-android with Apache License 2.0 | 4 votes |
private void init() { authenticationClient = AuthenticationClients.builder() .setOrgUrl(BuildConfig.BASE_URL) .build(); }
Example #5
Source File: DeepLinksHandlerActivity.java From samples-android with Apache License 2.0 | 4 votes |
private void init() { authenticationClient = AuthenticationClients.builder() .setOrgUrl(BuildConfig.BASE_URL) .build(); }