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

Update README.md #168

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In order to use JOSS in your project, simply add the following dependency:
<dependency>
<groupId>org.javaswift</groupId>
<artifactId>joss</artifactId>
<version>0.10.2</version>
<version>0.10.3</version>
</dependency>
```

Expand Down Expand Up @@ -121,7 +121,25 @@ Likewise, this information can be retrieved, as seen above.
System.out.println("META / "+name+": "+returnedMetadata.get(name));
}
```
KeystoneV3 scoped authentication
--------------------------------
In 0.10.3 version, support for scoping the authentication is added. There are three scopes defined namely DEFAULT, PROJECT_NAME, DOMAIN_NAME.
For PROJECT_NAME scoping, the tenantName and authentication method scope are mandatary parameters that need to be set.

```java
Account account = new AccountFactory()
.setUsername(username)
.setPassword(password)
.setAuthUrl(url)
.setTenantName(tenantName)
.setAuthenticationMethod(AuthenticationMethod.KEYSTONE_V3)
.setAuthenticationMethodScope(AuthenticationMethodScope.PROJECT_NAME)
.createAccount();
```


Connecting through proxy
------------------------
It is possible to connect with proxy, there are two options how to setup it:

Option A: Programmatically
Expand Down