Skip to content

Commit

Permalink
Rename to Configuration. preprod url is default
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Skaret committed Jan 30, 2017
1 parent 73380de commit d4cba56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ When the user is authenticated you will see the result from a call to UserInfo R
The application examplifies all steps of the OIDC authentication process.

1. Fetch configuration from OIDC. GET to a non protected URL, such as
https://prototype.bankidnorge.no/bankid-oauth/oauth/.well-known/openid-configuration
https://preprod.bankidapis.no/oidc/oauth/.well-known/openid-configuration
The configuration contains information such as relevant endpoints, and public key for the id_token (JWT).

2. Redirect to the authentication URL.
Expand All @@ -20,11 +20,7 @@ To be able to run the application you will need to edit the client_id and client
Contact BankID Norge ([email protected]) to retrieve the appropriate settings.

```
<<<<<<< HEAD
public class ClientDefinition {
=======
class ClientDefinition {
>>>>>>> Readme
class Configuration {
/**
* Client_id and password must be inseted here for the appliction to work.
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/no/bankid/oidc/BankIdOIDCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@
import java.util.UUID;

import static java.net.URLEncoder.encode;
import static no.bankid.oidc.ClientDefinition.CLIENT_ID;
import static no.bankid.oidc.ClientDefinition.CLIENT_PWD;
import static no.bankid.oidc.Configuration.*;

public class BankIdOIDCClient {

private static final String CONFIG_URL = "https://prototype.bankidnorge.no/bankid-oauth/oauth/.well-known/openid-configuration";
private static final String CALLBACK_URL = "http://localhost:8080/callback";

private final String authorizationEndpoint;
private final String token_endpoint;
private final String userinfo_endpoint;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package no.bankid.oidc;

class ClientDefinition {
class Configuration {

public static final String CONFIG_URL = "https://preprod.bankidapis.no/oidc/oauth/.well-known/openid-configuration";
public static final String CALLBACK_URL = "http://localhost:8080/callback";

/**
* Client_id and password must be inserted here for the application to work.
Expand Down

0 comments on commit d4cba56

Please sign in to comment.