- Newest
- Most votes
- Most comments
Hey GeekFox,
Authentication is ideally handled on the client side or the game backend service; GameLift focuses on integration of game servers with cloud hosting solutions (e.g. EC2).
You could checkout GameSparks, which has out-of-the-box solution for Authentication with Apple [1] or Google Play: [2]
Alternativly, you could implement your own Authentication solution with Cognito.
- Create a Cognito user pool, identity pool and Apple/Google account, see: [3], [4]
- Call GetCredentialsForIdentity (Follow [5]) to get the auth tokens
- If you are using Lambda game backend service, use the auth token to authenticate API gateway calls [6] to Lambda
- Lambda will then make calls to GameLift, such as SearchGameSessions, StartMatchmaking, etc.
[1] https://docs.gamesparks.com/api-documentation/request-api/authentication/signinwithappleconnectrequest.html
[2] https://docs.gamesparks.com/api-documentation/request-api/authentication/googleplayconnectrequest.html
[3] https://docs.aws.amazon.com/cognito/latest/developerguide/apple.html
[4] https://docs.aws.amazon.com/cognito/latest/developerguide/google.html
[5] https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html
[6] https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html
Hey GeekFox,
Authentication is ideally handled on the client side or the game backend service; GameLift focuses on integration of game servers with cloud hosting solutions (e.g. EC2).
You could checkout GameSparks, which has out-of-the-box solution for Authentication with Apple: https://docs.gamesparks.com/api-documentation/request-api/authentication/signinwithappleconnectrequest.html or Google Play: https://docs.gamesparks.com/api-documentation/request-api/authentication/googleplayconnectrequest.html
I’ve managed to solve it. I’m using playfab to store securely user data and from there I handle user creation on cognito and store login data. My game retrieve login data from there and login into cognito to get auth tokens. Everything is secured and handled by lambdas with authorizers so only playfab or my game can access cognito.
Relevant content
- asked 2 years ago
- asked 2 months ago
- asked a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago