Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server side OAuth2 in Dart

There are a lot of examples of how to use OAuth2 in Dart client-side (in browser), but I can't find any example of how to implement authentication for server-side.

For example, for Node.JS there are frameworks like PassportJS but I can't find anything similar for Dart.

As a use case could be a not SPA project, and I need to provide login to Google/Facebook/Twitter/etc

Can anybody provide any snippet using raw dart:io HttpServer or any server-side frameworks like Start or Bloodless ?

like image 351
Valentyn Shybanov Avatar asked Nov 11 '22 10:11

Valentyn Shybanov


1 Answers

The description says client library but also that it only works with 'dart:io' which means it is for the server http://pub.dartlang.org/packages/oauth2

and

http://pub.dartlang.org/packages/google_oauth2_v2_api (client and server)

like image 185
Günter Zöchbauer Avatar answered Dec 23 '22 15:12

Günter Zöchbauer