Hi everyone!Foal TS framework version 1.3 is officially released! Among other things, the new version now supports social authentication with Facebook and Google. It works with both session tokens and JWT and with many types of applications: regular WebApps, SPA+API or Mobile+API.Foal, in a few words, it's a Node.js framework:written in TypeScriptsupplied with batteries included (Auth, OpenAPI, GraphQL, ORM, config, ...)and with a simple and intuitive architecture (no over-engineering).And the must: it has more than 11,000 lines of documentation.------Let's see how to set up social auth with Google on the backend. This example will use session tokens.First, provide to the configuration files the client ID, client secret and the redirect URIs that are defined in your Google application.default.ymlThen update production.yml so that, in production, the server use SSL and a different URI that the one used in development.production.ymlThen create a auth controller to sign in and sign up users with Google.https://preview.redd.it/65e6i8jfcs241.png?width=1786&format=png&auto=webp&s=540ffe531cbdfb8b5a3862262c05b522586508feThat’s it!If you want to learn more, the documentation on social auth can be found here: https://foalts.gitbook.io/docs/topic-guides/authentication-and-access-control/social-authWebsite : https://foalts.orgDocs : https://foalts.gitbook.io/docsGithub : https://github.com/FoalTS/foalTwitter : https://twitter.com/FoalTs
Submitted December 05, 2019 at 09:42AM by Loic_Poullain
No comments:
Post a Comment