Skip to content
Snippets Groups Projects
Commit 401c9ee4 authored by Gerviba's avatar Gerviba
Browse files

Add license, fix readme

parent 31edd699
Branches
No related tags found
No related merge requests found
......@@ -14,10 +14,12 @@ AuthSch Java API
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.0</version>
<version>2.8.2</version>
</dependency>
```
If you're using a web container, you might need to put a [gson-2.8.2.jar](https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.2/) into the `WEB_INF/lib` folder.
### Initialize
```java
......@@ -69,7 +71,7 @@ TODO
## License
** "THE BEER-WARE LICENSE" (Revision 42): ** <br>
"THE BEER-WARE LICENSE" (Revision 42): <br>
<br>
&lt;gerviba@gerviba.hu&gt; wrote this file. As long as you retain this notice you <br>
can do whatever you want with this stuff. If we meet some day, and you think <br>
......
......@@ -14,6 +14,9 @@ import java.util.List;
import hu.gerviba.authsch.struct.Scope;
/**
* @author Gerviba
*/
public final class AuthResponse implements Serializable {
private static final long serialVersionUID = 4140354200501250401L;
......
......@@ -9,6 +9,9 @@
*/
package hu.gerviba.authsch.struct;
/**
* @author Gerviba
*/
public enum BMEUnitScope {
BME(true, false, false, false),
BME_VIK(true, true, false, false),
......
......@@ -11,6 +11,9 @@ package hu.gerviba.authsch.struct;
import java.io.Serializable;
/**
* @author Gerviba
*/
public class Entrant implements Serializable {
private static final long serialVersionUID = 461763126385555164L;
......
......@@ -11,6 +11,9 @@ package hu.gerviba.authsch.struct;
import java.io.Serializable;
/**
* @author Gerviba
*/
public class PersonEntitlement implements Serializable {
private static final long serialVersionUID = -2904767686389619156L;
......
package hu.gerviba.authsch;
/**
*
* "THE BEER-WARE LICENSE" (Revision 42):
*
* <gerviba@gerviba.hu> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Szabó Gergely
*
*/
import static org.junit.Assert.*;
import java.util.Arrays;
......
/**
*
* "THE BEER-WARE LICENSE" (Revision 42):
*
* <gerviba@gerviba.hu> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Szabó Gergely
*
*/
package hu.gerviba.authsch;
import static org.junit.Assert.*;
......
/**
*
* "THE BEER-WARE LICENSE" (Revision 42):
*
* <gerviba@gerviba.hu> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Szabó Gergely
*
*/
package hu.gerviba.authsch;
import static org.junit.Assert.assertEquals;
......@@ -55,10 +64,10 @@ public class ProfileResponseTest {
assertEquals("KB", profile.getEntrants().get(0).getEntrantType());
assertEquals(Arrays.asList("BMEGT42A001", "BMEGT52A001", "BMEGT70BS2B"), profile.getCourses());
assertEquals(Arrays.asList("junit@sch.hu", "juint@balu.sch.bme.hu", "LinuxTerminal", "CERTSVC_DCOM_ACCESS", "Users"),
profile.getADMemberships());
assertEquals(Arrays.asList(BMEUnitScope.BME, BMEUnitScope.BME_ACTIVE, BMEUnitScope.BME_VIK, BMEUnitScope.BME_VIK_ACTIVE),
profile.getBmeUnitScopes());
assertEquals(Arrays.asList("junit@sch.hu", "juint@balu.sch.bme.hu", "LinuxTerminal",
"CERTSVC_DCOM_ACCESS", "Users"), profile.getADMemberships());
assertEquals(Arrays.asList(BMEUnitScope.BME, BMEUnitScope.BME_ACTIVE, BMEUnitScope.BME_VIK,
BMEUnitScope.BME_VIK_ACTIVE), profile.getBmeUnitScopes());
}
@Test
......
/**
*
* "THE BEER-WARE LICENSE" (Revision 42):
*
* <gerviba@gerviba.hu> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Szabó Gergely
*
*/
package hu.gerviba.authsch.struct;
import static org.junit.Assert.*;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment