Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keystone V3 API endpoints not supported #634

Closed
bogiva opened this issue Apr 14, 2016 · 2 comments
Closed

Keystone V3 API endpoints not supported #634

bogiva opened this issue Apr 14, 2016 · 2 comments

Comments

@bogiva
Copy link

bogiva commented Apr 14, 2016

Hi,

We have a setup with both Keystone V2 and V3 API enabled.
When trying to connect with V3 authentication - the connection is successful but we cannot get access to the V3 API endpoint.

What is the rationale behind this code in the resolveV3 method?

` private String resolveV3(URLResolverParams p) {
Token token = p.access.unwrap();
if (p.perspective == null)
p.perspective = Facing.PUBLIC;

    for (Catalog catalog : token.getCatalog()) {
        if (p.type == ServiceType.forName(catalog.getType())) 
        {
            for (org.openstack4j.model.identity.v3.Endpoint ep : catalog.getEndpoints()) {
                // Since we only support V3 authentication - skip a V3 URL
                if (matches(ep, p) && !isEndpointV3(ep.getUrl())) {
                    return ep.getUrl().toString();
                }
            }
        }
    }
    return null;
}

`
Why would the V3 endpoint be skipped? This prevents us from using V3 endpoint in environments with both V2 and V3 enabled APIs.

Thanks in advance!

@bogiva bogiva changed the title Multiple Keystone APIs not supported Keystone V2 + V3 API endpoints not supported Apr 14, 2016
@bogiva bogiva changed the title Keystone V2 + V3 API endpoints not supported Keystone V3 API endpoints not supported Apr 14, 2016
@gschukin
Copy link
Contributor

Yep. You have to wait for V3 implementation. Or build library from v3 branch yourself.

@vinodborole
Copy link
Contributor

v3 implementation is part of the latest release now, hence closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants