Class OurOAuth20ServiceBridge


  • public class OurOAuth20ServiceBridge
    extends java.lang.Object
    In order to send resource param using scribejava 7.0.0; see https://github.com/scribejava/scribejava/pull/979
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api api  
      private com.github.scribejava.core.oauth.OAuth20Service authenticationService  
    • Constructor Summary

      Constructors 
      Constructor Description
      OurOAuth20ServiceBridge​(com.github.scribejava.core.oauth.OAuth20Service authenticationService, com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api api)  
    • Field Detail

      • authenticationService

        private final com.github.scribejava.core.oauth.OAuth20Service authenticationService
      • api

        private final com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api api
    • Constructor Detail

      • OurOAuth20ServiceBridge

        public OurOAuth20ServiceBridge​(com.github.scribejava.core.oauth.OAuth20Service authenticationService,
                                       com.github.scribejava.apis.MicrosoftAzureActiveDirectory20Api api)
    • Method Detail

      • getAccessTokenClientCredentialsGrant

        public com.github.scribejava.core.model.OAuth2AccessToken getAccessTokenClientCredentialsGrant()
                                                                                                throws java.io.IOException,
                                                                                                       java.lang.InterruptedException,
                                                                                                       java.util.concurrent.ExecutionException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • createAccessTokenClientCredentialsGrantRequest

        protected com.github.scribejava.core.model.OAuthRequest createAccessTokenClientCredentialsGrantRequest()
      • sendAccessTokenRequestSync

        protected com.github.scribejava.core.model.OAuth2AccessToken sendAccessTokenRequestSync​(com.github.scribejava.core.model.OAuthRequest request)
                                                                                         throws java.io.IOException,
                                                                                                java.lang.InterruptedException,
                                                                                                java.util.concurrent.ExecutionException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • execute

        public com.github.scribejava.core.model.Response execute​(com.github.scribejava.core.model.OAuthRequest request)
                                                          throws java.lang.InterruptedException,
                                                                 java.util.concurrent.ExecutionException,
                                                                 java.io.IOException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.io.IOException