rokwire / core-building-block

Building block which handles core functions for the Rokwire platform - users, accounts, profiles, organizations, authentication and authorization.
Apache License 2.0
3 stars 2 forks source link

ROKMETRO Updates #707

Open roberlander2 opened 6 months ago

roberlander2 commented 6 months ago

Description

This PR merges in updates from the ROKMETRO team, which includes WebAuthn authentication, a split of existing AccountAuthType data into AccountAuthType and AccountIdentifier to allow users to authenticate with any identifier/auth type combination, account following support, app org token duration policies, and various bug fixes and logging improvements.

All of these changes should be backwards compatible with existing client applications and existing building blocks. This is a combination of many different changes, so please let me know if you notice any issues or have questions or concerns. Thanks!

Resolves #659, #677, #472, #674

Review Time Estimate

Please give your idea of how soon this pull request needs to be reviewed by selecting one of the options below. This can be based on the criticality of the issue at hand and/or other relevant factors.

Type of changes

Please select a relevant option:

Checklist:

Please select all applicable options:


roberlander2 commented 5 months ago

Hi @roberlander2 ,

I am back on reviewing this. The review is in progress. I left two comments. Also, do we need to add (or update) any environment variables with these changes? Thanks.

Thank you @petyos,

There are five new environment variables (listed below) and all are optional. The first two are used to set parameters that determine how verification emails are sent to users and the last three are used to support private key rotation for the service (we should only set them when we want to perform a rotation).

petyos commented 4 months ago

Hi @roberlander2 , I am back on reviewing this. The review is in progress. I left two comments. Also, do we need to add (or update) any environment variables with these changes? Thanks.

Thank you @petyos,

There are five new environment variables (listed below) and all are optional. The first two are used to set parameters that determine how verification emails are sent to users and the last three are used to support private key rotation for the service (we should only set them when we want to perform a rotation).

* ROKWIRE_CORE_VERIFY_WAIT_TIME

* ROKWIRE_CORE_VERIFY_EXPIRY

* ROKWIRE_CORE_OLD_SUPPORT_LEGACY_SIGNATURES

* ROKWIRE_CORE_OLD_AUTH_PRIV_KEY

* ROKWIRE_CORE_OLD_AUTH_PRIV_KEY_PATH

Ok, thanks!

roberlander2 commented 1 month ago

@roberlander2 remember to update rokmetro:rokwire-develop with changes from rokmetro:develop in addition to rokwire:develop.