-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into passwordless-v2
- Loading branch information
Showing
13 changed files
with
852 additions
and
207 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
auth0/src/main/java/com/auth0/android/provider/AlgorithmNameVerifier.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 com.auth0.android.provider; | ||
|
||
import android.support.annotation.NonNull; | ||
|
||
import java.util.Arrays; | ||
|
||
/** | ||
* Token signature verifier for RSH256 and/or HS256 algorithms. | ||
*/ | ||
class AlgorithmNameVerifier extends SignatureVerifier { | ||
|
||
AlgorithmNameVerifier() { | ||
super(Arrays.asList("HS256", "RS256")); | ||
} | ||
|
||
@Override | ||
protected void checkSignature(@NonNull String[] tokenParts) throws TokenValidationException { | ||
//NO-OP | ||
} | ||
} |
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
17 changes: 0 additions & 17 deletions
17
auth0/src/main/java/com/auth0/android/provider/SymmetricSignatureVerifier.java
This file was deleted.
Oops, something went wrong.
7 changes: 3 additions & 4 deletions
7
auth0/src/main/java/com/auth0/android/provider/TokenValidationException.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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package com.auth0.android.provider; | ||
|
||
import com.auth0.android.authentication.AuthenticationException; | ||
import com.auth0.android.Auth0Exception; | ||
|
||
class TokenValidationException extends AuthenticationException { | ||
private static final String ERROR_CODE = "a0.sdk.internal_error.id_token_validation"; | ||
class TokenValidationException extends Auth0Exception { | ||
|
||
TokenValidationException(String message) { | ||
super(ERROR_CODE, message); | ||
super(message); | ||
} | ||
} |
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
Oops, something went wrong.