virtualcommons / port-of-mars

Port of Mars is an online, game-based, social science experiment set on the first human community on the Red Planet. We are now in an open beta where anyone aged 18 and over can participate.
https://portofmars.asu.edu
GNU Affero General Public License v3.0
10 stars 16 forks source link

add social auth #790

Closed alee closed 1 year ago

alee commented 2 years ago

https://github.com/auth0/passport-auth0

alee commented 2 years ago

Nuxt 3 auth may need to be manually done until the proper auth integration is supported:

https://github.com/nuxt/framework/discussions/3447

See https://javascript.plainenglish.io/nuxt-3-auth0-authentication-70e86a98a3b3 for an example using Nuxt 3 middleware and auth0 which is likely the auth provider we will use.

alee commented 2 years ago

vue examples: https://github.com/auth0-samples/auth0-vue-samples/tree/master/01-Login

alee commented 2 years ago

JWT pitfalls: https://redis.com/wp-content/uploads/2022/03/jwts-not-safe-e-book.pdf

Probably best to use cookie based authentication

alee commented 2 years ago

https://community.auth0.com/t/auth0-spa-js-vue3-nuxt3-and-a-document-h3-error/87604

https://v3.nuxtjs.org/examples/routing/middleware https://v3.nuxtjs.org/guide/directory-structure/plugins/ https://vuejsexamples.com/demo-of-using-nuxt-3-with-github-authentication-and-creating-issues-with-real-time-updates/ https://github.com/aborn/playgrounds/blob/main/nuxt-openid-connect-demo/pages/index.vue

alee commented 2 years ago

nuxt support on hold due to #809

Passport modules:

https://github.com/jaredhanson/passport-google-oauth2

https://github.com/jaredhanson/passport-facebook

alee commented 2 years ago

FB Gaming Login: https://developers.facebook.com/docs/games/acquire/login-for-gaming

sgfost commented 1 year ago

google + fb login both added in open beta release