Merge pull request #2042 from SDA-SE/feat/id-token-regex

fix(core): check id_tokens according to base64url instead of base64
This commit is contained in:
Fredrik Adelöw
2020-08-20 14:36:43 +02:00
committed by GitHub
@@ -29,7 +29,8 @@ import { InfoCard } from '../InfoCard/InfoCard';
import { ProviderComponent, ProviderLoader, SignInProvider } from './types';
import { GridItem } from './styles';
const ID_TOKEN_REGEX = /^[a-z0-9+/]+\.[a-z0-9+/]+\.[a-z0-9+/]+$/i;
// accept base64url format according to RFC7515 (https://tools.ietf.org/html/rfc7515#section-3)
const ID_TOKEN_REGEX = /^[a-z0-9_\-]+\.[a-z0-9_\-]+\.[a-z0-9_\-]+$/i;
const useFormStyles = makeStyles(theme => ({
form: {