Skip to content

Commit

Permalink
feat: added policy page
Browse files Browse the repository at this point in the history
  • Loading branch information
rglauco committed Oct 28, 2023
1 parent 468fe42 commit 44eeadc
Show file tree
Hide file tree
Showing 3 changed files with 452 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package it.spid.cie.oidc.spring.boot.relying.party.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import it.spid.cie.oidc.schemas.OIDCProfile;
import it.spid.cie.oidc.schemas.ProviderButtonInfo;
import it.spid.cie.oidc.spring.boot.relying.party.RelyingPartyWrapper;

@RestController
@RequestMapping("/oidc/rp")
public class PolicyController {
@GetMapping("/policy")
public ModelAndView home(HttpServletRequest request)
throws Exception {

ModelAndView mav = new ModelAndView("policy");

return mav;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ oidc:
organization-name: "PA OIDC Relying Party"
homepage-uri: "http://${oidc.hosts.relying-party}:8080/oidc/rp/landing"
policy-uri: "http://${oidc.hosts.relying-party}:8080/oidc/rp/policy"
logo-uri: "http://${oidc.hosts.relying-party}:8080/static/logo.svg"
logo-uri: "http://${oidc.hosts.relying-party}:8080/static/images/logo-it.svg"
federation-contacts:
- "federation-dev@example.com"

Expand Down
Loading

0 comments on commit 44eeadc

Please sign in to comment.