Skip to content

Commit 7f614e1

Browse files
authored
Merge pull request #188 from AlexPayment/extendable
Make SamlResponse slightly more extendable
2 parents c15d3e7 + 5e82145 commit 7f614e1

File tree

4 files changed

+116
-73
lines changed

4 files changed

+116
-73
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ The toolkit is hosted on github. You can download it from:
7777
#### Maven
7878
The toolkit is hosted at [Sonatype OSSRH (OSS Repository Hosting)](http://central.sonatype.org/pages/ossrh-guide.html) that is synced to the Central Repository.
7979

80-
Install it as a maven dependecy:
80+
Install it as a maven dependency:
8181
```
8282
<dependency>
8383
<groupId>com.onelogin</groupId>
8484
<artifactId>java-saml</artifactId>
85-
<version>2.2.0</version>
85+
<version>2.3.0</version>
8686
</dependency>
8787
```
8888

@@ -123,7 +123,7 @@ For more info, open and read the different pom.xml files:
123123
## Working with the github repository code and Eclipse.
124124
### Get the toolkit.
125125
The toolkit is hosted on github. You can download it from:
126-
* Lastest release: https://github.com/onelogin/java-saml/releases/latest
126+
* Latest release: https://github.com/onelogin/java-saml/releases/latest
127127
* Master repo: https://github.com/onelogin/java-saml/tree/master
128128

129129
### Adding java-saml toolkit components as a project
@@ -132,7 +132,7 @@ The toolkit is hosted on github. You can download it from:
132132
3. File > Import > Maven : Existing Maven Projects > Select the path where the toolkit folder of the Java Toolkit is *<path>/java-saml/toolkit*, resolve the Workspace project and select the pom.xml
133133

134134
### Adding the java-saml-tookit-jspsample as a project
135-
1. File > Import > Maven : Existing Maven Projects > Select the path where the core folder of the Java Toolkit is *<path>/java-saml/samples/java-saml-tookit-jspsample*, resolve the Wordkspace project and select the pom.xml
135+
1. File > Import > Maven : Existing Maven Projects > Select the path where the core folder of the Java Toolkit is *<path>/java-saml/samples/java-saml-tookit-jspsample*, resolve the Workspace project and select the pom.xml
136136

137137
### Deploy the java-saml-tookit-jspsample
138138

@@ -153,7 +153,7 @@ In the repo, at *src/main/java* you will find the source; at *src/main/resources
153153

154154

155155
#### toolkit (com.onelogin:java-saml) ####
156-
This folder contains a maven project with the Auth class to handle the low level classes of java-saml-core and the ServletUtils class to handle javax.servlet.http objetcs, used on the Auth class.
156+
This folder contains a maven project with the Auth class to handle the low level classes of java-saml-core and the ServletUtils class to handle javax.servlet.http objects, used on the Auth class.
157157
In the repo, at *src/main/java* you will find the source and at *src/test/java* the junit tests for the classes Auth and ServletUtils.
158158

159159
#### samples (com.onelogin:java-saml-tookit-samples) ####
@@ -347,7 +347,7 @@ onelogin.saml2.contacts.support.email_address = support@example.com
347347
```
348348

349349
##### Dynamic Settings
350-
It is possible to build settings programatically. You can load your values from different sources such as files, databases, or generated values.
350+
It is possible to build settings programmatically. You can load your values from different sources such as files, databases, or generated values.
351351

352352
The `SettingsBuilder` class exposes the method `fromValues(Map<String, Object> samlData)` which let you build your settings dynamically. The `key` strings are the same from the *Properties file*
353353
```java
@@ -498,7 +498,7 @@ With this method we get a Map with all the user data provided by the IdP in the
498498
"groups": ["users", "members"]
499499
}
500500
```
501-
Each attribute name can be used as a key to obtain the value. Every attribute is a list of values. A single-valued attribute is a listy of a single element.
501+
Each attribute name can be used as a key to obtain the value. Every attribute is a list of values. A single-valued attribute is a list of a single element.
502502

503503
Before trying to get an attribute, check that the user is authenticated. If the user isn't authenticated, an empty Map will be returned. For example, if we call to getAttributes before a auth.processResponse, the getAttributes() will return an empty Map.
504504

core/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<plugin>
9191
<groupId>org.apache.maven.plugins</groupId>
9292
<artifactId>maven-jar-plugin</artifactId>
93+
<version>2.4</version>
9394
<executions>
9495
<execution>
9596
<goals>

0 commit comments

Comments
 (0)