Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

[NEW] WordPress Oauth login support#1553

Merged
rafaelks merged 3 commits intobetafrom
new/wordpress-oauth-login
Jul 27, 2018
Merged

[NEW] WordPress Oauth login support#1553
rafaelks merged 3 commits intobetafrom
new/wordpress-oauth-login

Conversation

@philipbrito
Copy link
Copy Markdown
Contributor

@philipbrito philipbrito commented Jul 27, 2018

Supporting Custom (WordPress on-premise) and WordPress-Com.
Also, added documentation for all important OAuth methods used here for better sanity.

Closes #1545

Custom (WordPress on-premise) and WordPress-Com.
@philipbrito philipbrito self-assigned this Jul 27, 2018
@philipbrito philipbrito added this to the 2.5.1 milestone Jul 27, 2018
@rafaelks rafaelks merged commit f14c561 into beta Jul 27, 2018
@rafaelks rafaelks deleted the new/wordpress-oauth-login branch July 27, 2018 18:03
private fun getCustomOauthAuthorizePath(serviceMap: Map<String, Any>): String? {
return try {
serviceMap["authorizePath"] as String
} catch (exception: ClassCastException) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use serviceMap["authorizePath"] as? String instead... https://kotlinlang.org/docs/reference/typecasts.html#safe-nullable-cast-operator

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants