Class OAuth2FeignRequestInterceptor

  • All Implemented Interfaces:
    feign.RequestInterceptor

    public class OAuth2FeignRequestInterceptor
    extends java.lang.Object
    implements feign.RequestInterceptor
    Feign RequestInterceptor to add Bearer token in all headers
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AUTHORIZATION  
      static java.lang.String BEARER  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(feign.RequestTemplate template)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OAuth2FeignRequestInterceptor

        public OAuth2FeignRequestInterceptor()
    • Method Detail

      • apply

        public void apply​(feign.RequestTemplate template)
        Specified by:
        apply in interface feign.RequestInterceptor