Skip to content

Commit

Permalink
only one redirect URL (#76)
Browse files Browse the repository at this point in the history
* OAuth

* snyk deleted from package.json

* one redirect URL
  • Loading branch information
JohannesKonings authored May 21, 2020
1 parent 0127f67 commit f003fd8
Show file tree
Hide file tree
Showing 10 changed files with 347 additions and 81 deletions.
15 changes: 0 additions & 15 deletions .graphqlconfig.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"HostedUIDomain": "fffbadmintonbfa19d28-bfa19d28-auth",
"IdentityPoolId": "eu-central-1:3072157f-4418-4946-9312-e284e6f8f23a",
"IdentityPoolName": "fffbadminton63e2a49c_identitypool_63e2a49c__auth",
"OAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"http://localhost:3000/\"],\"LogoutURLs\":[\"http://localhost:3000/\"]}",
"OAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://www.fff-badminton.de/\"],\"LogoutURLs\":[\"https://www.fff-badminton.de/\"]}",
"UserPoolName": "fffbadminton63e2a49c_userpool_63e2a49c"
},
"lastPushDirHash": "Hxpg+9SoQnodKm8cN02rIHKoYFI="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"Google"
],
"hostedUIProviderMeta": "[{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]",
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"http://localhost:3000/\"],\"LogoutURLs\":[\"http://localhost:3000/\"]}"
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://www.fff-badminton.de/\"],\"LogoutURLs\":[\"https://www.fff-badminton.de/\"]}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Parameters:

hostedUIProviderCreds:
Type: String

hostedUIDomainName:
Type: String

Expand Down
2 changes: 1 addition & 1 deletion amplify/backend/auth/fffbadminton63e2a49c/parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"Google"
],
"hostedUIProviderMeta": "[{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]",
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"http://localhost:3000/\",\"https://www.fff-badminton.de/\"],\"LogoutURLs\":[\"http://localhost:3000/\",\"https://www.fff-badminton.de/\"]}"
"oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://www.fff-badminton.de/\"],\"LogoutURLs\":[\"https://www.fff-badminton.de/\"]}"
}
78 changes: 78 additions & 0 deletions src/graphql/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ export const createGameday = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
nextToken
}
createdAt
updatedAt
}
}
`;
Expand All @@ -33,9 +37,13 @@ export const updateGameday = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
nextToken
}
createdAt
updatedAt
}
}
`;
Expand All @@ -52,9 +60,13 @@ export const deleteGameday = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
nextToken
}
createdAt
updatedAt
}
}
`;
Expand All @@ -71,6 +83,8 @@ export const createGame = /* GraphQL */ `
games {
nextToken
}
createdAt
updatedAt
}
player1 {
id
Expand All @@ -79,7 +93,11 @@ export const createGame = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
player2 {
id
Expand All @@ -88,10 +106,16 @@ export const createGame = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
}
`;
Expand All @@ -108,6 +132,8 @@ export const updateGame = /* GraphQL */ `
games {
nextToken
}
createdAt
updatedAt
}
player1 {
id
Expand All @@ -116,7 +142,11 @@ export const updateGame = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
player2 {
id
Expand All @@ -125,10 +155,16 @@ export const updateGame = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
}
`;
Expand All @@ -145,6 +181,8 @@ export const deleteGame = /* GraphQL */ `
games {
nextToken
}
createdAt
updatedAt
}
player1 {
id
Expand All @@ -153,7 +191,11 @@ export const deleteGame = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
player2 {
id
Expand All @@ -162,10 +204,16 @@ export const deleteGame = /* GraphQL */ `
id
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
}
`;
Expand All @@ -182,18 +230,28 @@ export const createPlayer = /* GraphQL */ `
gameday {
id
date
createdAt
updatedAt
}
player1 {
id
name
createdAt
updatedAt
}
player2 {
id
name
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
}
`;
Expand All @@ -210,18 +268,28 @@ export const updatePlayer = /* GraphQL */ `
gameday {
id
date
createdAt
updatedAt
}
player1 {
id
name
createdAt
updatedAt
}
player2 {
id
name
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
}
`;
Expand All @@ -238,18 +306,28 @@ export const deletePlayer = /* GraphQL */ `
gameday {
id
date
createdAt
updatedAt
}
player1 {
id
name
createdAt
updatedAt
}
player2 {
id
name
createdAt
updatedAt
}
resultPlayer1
resultPlayer2
createdAt
updatedAt
}
createdAt
updatedAt
}
}
`;
Loading

0 comments on commit f003fd8

Please sign in to comment.