OIDCAndroidLib
OIDCAndroidLib copied to clipboard
Android library module for OIDC inspired from https://github.com/learning-layers/android-openid-connect
The following crash occurs on two different devices running lollipop: ``` com.myapp E/SensitiveDataStorage: Can't decrypt data org.spongycastle.crypto.InvalidCipherTextException: pad block corrupted at org.spongycastle.crypto.paddings.PKCS7Padding.padCount(PKCS7Padding.java:72) at org.spongycastle.crypto.paddings.PaddedBufferedBlockCipher.doFinal(PaddedBufferedBlockCipher.java:287) at com.lnikkila.oidc.security.SensitiveDataPreApi23.cipherData(SensitiveDataPreApi23.java:132) at com.lnikkila.oidc.security.SensitiveDataPreApi23.decrypt(SensitiveDataPreApi23.java:196) at com.lnikkila.oidc.security.SensitiveDataUtils.decrypt(SensitiveDataUtils.java:94)...
As pointed by @asinel the configuration wiki is empty and needs to be completed soon https://github.com/kalemontes/OIDCAndroidLib/wiki/2.-Configure .
AsyncTasks are not the best way to [handle async network requests](https://raw.githubusercontent.com/stephanenicolas/robospice/master/gfx/RoboSpice-InfoGraphics.png). We should migrate [AuthenticatorActivity.ImplicitFlowTask](https://github.com/kalemontes/OIDCAndroidLib/blob/master/oidclib/src/main/java/com/lnikkila/oidc/authenticator/AuthenticatorActivity.java#L661) , [AuthenticatorActivity.HybridFlowTask](https://github.com/kalemontes/OIDCAndroidLib/blob/master/oidclib/src/main/java/com/lnikkila/oidc/authenticator/AuthenticatorActivity.java#L717), [AuthenticatorActivity.CodeFlowTask](https://github.com/kalemontes/OIDCAndroidLib/blob/master/oidclib/src/main/java/com/lnikkila/oidc/authenticator/AuthenticatorActivity.java#L760), [AuthenticatorActivity.PasswordFlowTask](https://github.com/kalemontes/OIDCAndroidLib/blob/master/oidclib/src/main/java/com/lnikkila/oidc/authenticator/AuthenticatorActivity.java#L787) to a IntentService oriented handler.