Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for pushed authorization request #49

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

lalwani
Copy link
Contributor

@lalwani lalwani commented Apr 25, 2023

This PR adds the functionality to submit profile values to Uber backend and pre-populate the results during auth. For example, supplying phone number would have the phone number field filled when launching the signup flow. Note, this only works for implicit and auth code login types, not native.
OAuth 2.0 PAR Rfc https://datatracker.ietf.org/doc/html/rfc9126

The changes include:

A new ProfileHint type to specify email, phone number, and name
A new builder method added to SessionConfigutation to allow supplying ProfileHint
A new endpoint par used to submit values to BE and get a request_uri in response
Added callback to pass request_uri back to the caller
Changing login.uber.com -> auth.uber.com
Unit tests
bump up java version to 1.8
upgrade gradle to 4.8

Copy link

@skhanzada skhanzada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed the erd and changes, lgtm

@lalwani lalwani merged commit 17f30d5 into uber:master May 2, 2023

import javax.annotation.Nonnull;

public class ProfileHint implements Serializable {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be in internal, it's in the public facing API

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call. will raise a separate pr for it

@Json(name = "first_name")
private final String firstName;
@Json(name = "last_name")
private final String lastName;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should explicitly set @JSON field name on all these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants