dart-server

How to logout (ie, revoke, delete, or invalidate the tokens) for a user on an Aqueduct server?

ぃ、小莉子 提交于 2020-05-11 01:51:17
问题 I know how to implement a route to register a user and also how to trade user credentials in for an access token. These are both covered in the official tutorial. How do you invalidate the access token (and refresh token) for a registered user. This is necessary both for logging out and for limiting damage if a user's account is compromised. I see there is a method authServer.revokeAllGrantsForResourceOwner(identifier) but I am still working on how to get the identifier from the user since

How to logout (ie, revoke, delete, or invalidate the tokens) for a user on an Aqueduct server?

点点圈 提交于 2020-05-11 01:49:04
问题 I know how to implement a route to register a user and also how to trade user credentials in for an access token. These are both covered in the official tutorial. How do you invalidate the access token (and refresh token) for a registered user. This is necessary both for logging out and for limiting damage if a user's account is compromised. I see there is a method authServer.revokeAllGrantsForResourceOwner(identifier) but I am still working on how to get the identifier from the user since

Send user verification email from dart server

爷,独闯天下 提交于 2019-12-24 19:33:49
问题 I'm using Aqueduct to build a backend Dart server (but the answer doesn't have to use Aqueduct). When a new user signs up with an email address, I want to send a verification email to them. It will include a link back to the server, or possibly a verification code. My problem is I don't know how to send an email in Dart. I didn't see any package on Pub that looked like it would do it either. Can I do it manually using dart:io or anything? 来源: https://stackoverflow.com/questions/56194778/send