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
Pkce.java - encodeBase64 Wrapping response #315
Comments
Thank you for your suggestion. We really appreciate it. In code we call encodeBase64 for appId:secret and for the string it would not make any difference if we use Default or NO_WRAP. For string: sdfgfdgfdgfdgdfgfd:dfguhwuifgiewufdsgfiwgeiufewsdbviusd There is no functionality break. We are keeping the code as it is. |
Thank you for your reply; I will review my issue and see if it is resolved. |
…x was that encodeBase64 required its flags to be updated to include Base64.NO_PADDING)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
To help us solve your problem better, please answer the following list of questions.
What service are you using?
Testing AmazonCognitoAuthDemo with User Pool Federated Identity.
In what version of SDK are you facing the problem?
2.4.4
Is the issue limited to Simulators / Actual Devices?
Actual Devices (project will not run on Emulator without Chrome browser installed)
Can your problem be resolved if you bump to a higher version of SDK?
No higher version available
Is this problem related to specific Android/OS version?
Not that I can tell. Testing on Android 7.0
Can you give us steps to reproduce with a minimal, complete, and verifiable example? Please include any specific network conditions that might be required to reproduce the problem.
Using the supplied Demo app; Configure Cognito as:
Note: Client ID and Secret can be supplied if needed.
Test Case:
In Main activity; onCreate
Output is:
QmFzaWMgc2RmZ2ZkZ2ZkZ2ZkZ2RmZ2ZkOmRmZ3Vod3VpZmdpZXd1ZmRzZ2Zpd2dlaXVmZXdzZGJ2
aXVzZA==
Suggested resolution:
In Class Pkce.java; function encodeBase64 change:
to:
The text was updated successfully, but these errors were encountered: