Grails-Plugin-Consortium / grails-cxf-client

Easy cxf client for grails
http://grails.org/plugin/cxf-client
27 stars 30 forks source link

Custom Authorization Policy with authorizationType = 'Digest' issue #58

Open lifeweaver opened 8 years ago

lifeweaver commented 8 years ago

I'm trying to use a CustomAuthorizationPolicy with an authorizationType = 'Digest' but I'm not having any luck. Similar to the example grails-cxf-client-demo, but 'Digest' vs. 'Basic'.

resources.groovy

customAuthorizationPolicy(AuthorizationPolicy) {
        userName = 'test'
        password = 'test'
        authorizationType = 'Digest'
}

Config.groovy

someServiceClient {
            wsdl = 'some.wsdl'
            namespace = 'some.namespace'
            clientInterface = 'some.interface'
            serviceEndpointAddress = 'some.endpoint'
            authorizationPolicy = 'customAuthorizationPolicy'
}

Is an authorizationType = 'Digest' supported?