Commit Graph

12 Commits

Author SHA1 Message Date
Helen Qin
0bc03e3032 Use the launch intent data in the ux.
Note: The intent data is not a full list of everything we need yet so
the ux is looking a bit raw operating on the only information it can
get. Following up will be improving this.

Test: deployed locally
Bug: 247855226
Change-Id: Icd66866d37210486f3c5223c9e93b9b589476f96
2022-10-14 15:32:56 +00:00
Helen Qin
ecd059a111 Add entries to ProviderData.
Test: deployed locally
Bug: 247855226
Change-Id: Idcea420e90f5c995566556367cdafe009555b2d9
2022-10-11 16:27:35 +00:00
Helen Qin
c894292a02 Define UserSelectionResult for when a UI flow completes.
Contains information about what user has chosen during the credential
selection UI flow. Returned as part of the intent extras when the
activity completes successfully.

Test: deployed locally
Bug: 247855226
Change-Id: Ia8252280882407e4c766dca7a36e5fb79108240b
2022-10-06 16:37:17 +00:00
Helen Qin
2b6c3501c0 Merge "Add type and isFirstUsage to RequestInfo." 2022-10-05 18:20:35 +00:00
Helen Qin
30f7698c2d Merge "Allow requests to require system providers." 2022-10-05 16:48:03 +00:00
Helen Qin
9e5ed0027f Allow requests to require system providers.
With this bit set to true, a given request can only be fulfilled by
system providers matching the given credential type.

Bug: 246564035
Test: Local Build & Deployment
Change-Id: Ic842894bfa092e551f20a4f8c1a969395ede663f
2022-10-04 22:28:17 +00:00
Helen Qin
a22289147a Add error codes to CredentialManagerException.
Bug: 246564035
Test: Local Build & Deployment
Change-Id: Ib4817998135772c42c67d26638b669d2367da5a6
2022-10-04 21:51:39 +00:00
Helen Qin
3b3f177c3f Add type and isFirstUsage to RequestInfo.
Which will be used to decide which type of dialog to render, and whether
to render the provider-centric selection page, respectively.

Test: deployed locally
Bug: 247855226
Change-Id: Ief3d26dc85ead5df6f2031a20c61b29206cd0bdc
2022-10-04 19:50:30 +00:00
Helen Qin
6d6da715c5 Define the Request and Provider Info as part of the UI protocol.
The CredMan selector UI will expect request/provider info from the
launching intent. ProviderInfo contains metadata and entry info for a
single provider. RequestInfo contains metadata about the app request
that initiated this ui flow.

Test: deployed locally
Bug: 247855226
Change-Id: I3348ec582920d7d8019b272b8fc2b3c2d48404c6
2022-10-03 18:27:34 +00:00
Helen Qin
20ff355163 Framework credential manager developer APIs definitions.
The CredentialManager module provides solution for developers to create
or get credential from a user that can be used to authenticate to the app.
It can potentially launch system level UI flows to collect user consent,
render a unified selector when more than one credential exists, and
perform anything else needed.

Check bug id for detailed design.

Note that this is still very early stage of productionizing the module
and proper test cases will be added subsequently when the service
gets more concrete business logic.

Bug: 246564035
CTS-Coverage-Bug: 246637346
Test: Local Build & Deployment
Change-Id: Ia5884a7f6a3908de3b8b4b29f154f98e25730bd7
2022-10-03 07:28:30 +00:00
Reema Bajwa
461c8e3b2d Add initial skeleton implementation of Credential Manager
Test: built and tested locally

Change-Id: Ide7a4b586929b4175001ed02fce2f7245f9e31f2
2022-09-04 23:55:10 +00:00
Reema Bajwa
827821d058 Add dirtectories and OWNER files
Change-Id: I8c6cf6632696f128e1cc68e3850448a33c3d79f3
2022-08-23 18:15:22 +00:00