https://github.com/dappsar/saml-gradle-spring-sample
Java Integracion with SAML (IDP & SP) with maven and gradle
https://github.com/dappsar/saml-gradle-spring-sample
gradle java maven saml
Last synced: 2 months ago
JSON representation
Java Integracion with SAML (IDP & SP) with maven and gradle
- Host: GitHub
- URL: https://github.com/dappsar/saml-gradle-spring-sample
- Owner: dappsar
- License: gpl-3.0
- Created: 2023-01-25T21:34:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T21:35:00.000Z (over 3 years ago)
- Last Synced: 2025-10-12T03:48:09.231Z (9 months ago)
- Topics: gradle, java, maven, saml
- Language: Java
- Homepage:
- Size: 191 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README



# saml2-tutorial
## Introduction
Sample integración Java with SAML (IDP and SP)
## How to run
### Maven
```sh
cd identity-provider-example
mvn install
mvn spring-boot:run
```
In other console:
```sh
cd service-provider-example
mvn install
mvn spring-boot:run
# Then, open: http://localhost:8080/sample-sp
# Select el IDP de la lista (one option only)
# Input user: user / password: password
```
### Gradle
```sh
cd identity-provider-example
gradle build
./gradle bootRun
```
In other console:
```sh
cd service-provider-example
gradle build
gradle bootRun
# Then, open: http://localhost:8080/sample-sp
# Select el IDP de la lista (one option only)
# Input user: user / password: password
```
## References
### Maven to Gradle
Just un "gradle init" en root folder
Then add in build.gradle:
```sh
plugins {
id "org.springframework.boot" version "2.4.1"
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.4.1"
}
}
apply plugin: "org.springframework.boot"
```
More info:
- https://plugins.gradle.org/plugin/org.springframework.boot
- https://sagioto.github.io/maven2gradle/
- https://www.baeldung.com/maven-convert-to-gradle
### Gradle to Maven
Since Gradle 7, when using [Gradle's Maven-Publish plugin](https://docs.gradle.org/current/userguide/publishing_maven.html), publishToMavenLocal and publish are automatically added to your tasks, and calling either will always generate a POM file.
More info:
- https://stackoverflow.com/questions/12888490/gradle-build-gradle-to-maven-pom-xml
- https://howtodoinjava.com/gradle/convert-maven-project-to-gradle-project/