Created
May 9, 2017 18:57
-
-
Save KacT9H/b544d542d76a359200e59b0cae559b30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.realizeideas.oauth.bitbucket | |
import org.scribe.builder.api.DefaultApi10a | |
import org.scribe.model.Token | |
/** | |
* @author: Konstantin Khisamov | |
*/ | |
class BitbucketApi extends DefaultApi10a { | |
@Override | |
String getRequestTokenEndpoint() { | |
"https://bitbucket.org/api/1.0/oauth/request_token" | |
} | |
@Override | |
String getAccessTokenEndpoint() { | |
"https://bitbucket.org/api/1.0/oauth/access_token" | |
} | |
@Override | |
String getAuthorizationUrl(Token requestToken) { | |
"https://bitbucket.org/api/1.0/oauth/authenticate?oauth_token=${requestToken.token}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment