chenjianjx / srb4j Goto Github PK
View Code? Open in Web Editor NEWA Java RESTFul backend framework, with user/password/access-token support.
License: Apache License 2.0
A Java RESTFul backend framework, with user/password/access-token support.
License: Apache License 2.0
I should be able to do sql migration with a single maven command
Missing token/ token invalid / token expired: should use 401 + WWW-Authenticate header , not 400 . And in this case the frontend should do a login.
Insufficient scope: should use 403 + WWW-Authenticate header. In this case the frontend should not do a login
A good discussion can be found here: bshaffer/oauth2-server-php#143
Things that should be changed
Find the occurences of JacksonJaxbJsonProvider and replace the registration statement with
register(new JacksonJaxbJsonProvider().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false));
The problem was described on googleapis/google-api-java-client#1060
HttpTransport googleHttpTransport = new ApacheHttpTransport(GoogleCustomTimeoutHttpClient.newHttpClient());
Currently they are returning "long", meaning the generated ID. But that's a mistake. What's really returned is the number of rows that have been inserted. So, it will always return 1.
As a developer,
I can choose between two schemes concerning verification status
To be more specific,
Feature | scheme = VERIFICATION_REQUIRED | scheme = VERIFICATION_NOT_REQUIRED | More |
---|---|---|---|
Register with email/password | An verification email will be sent. The user will NOT be automatically logged in | An verification email will be sent. The user will be automatically logged in | |
Login with email/password | An verification email will be sent. Login unsuccessful | Login successful | |
Register/Login with social account | Login successful | Login successful | In this case the email verification status is alway "verified" |
Request for random login code | An verification email will be sent. "Please verify your email first" | Allowed | |
Login using random login code | N/A - The user won't have any | Login successful |
This can happen when a person registers himself with an email and use a social account associated with the same email
As a user,
As a user, I can verify my email if I registered with email/password.
Typical flow:
I can ask for a verification link to be sent to my email. After clicking it, I will be directed to a web page which tells me that the verification has been done.
Alternative flows:
Because v <= 2.8 has been deprecated by facebook.
Make the change according to this PR: chenjianjx/srb4jfullsample#3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.