AzureAD / microsoft-authentication-library-common-for-android

Common code used by both the Active Directory Authentication Library (ADAL) and the Microsoft Authentication Library (MSAL)
MIT License
41 stars 35 forks source link

Adding base64Url encoding method #2303

Closed melissaahn closed 8 months ago

melissaahn commented 9 months ago

Summary

The challenge field of the PublicKeyCredentialRequestOptionsJSON class is meant to have a value that is base64Url encoded (see https://w3c.github.io/webauthn/#dictdef-publickeycredentialrequestoptionsjson). This PR adds a method to encode a String to be base64Url encoded, adds unit tests, and updates associated existing unit tests.