Skip to content

catac/verified-access-service

Repository files navigation

verified-access-service

This is a TEST implementation of the "Network Service" in the Chrome Verified Access Developer's Guide.

Setup

Google Cloud console

  • Login into the Google Cloud console: https://console.cloud.google.com/
  • Create an API Key and a Service Account under API & Services -> Credentials
  • Under the Service Account, create a key and download the json file
  • The API Key should be used on the Chromebook to generate the challenge
  • The json credentials file associated to the Service Account will be used by this service

Google Admin console

  • Login into the Google Admin console: https://admin.google.com/
  • Go to Devices -> Chrome -> Settings for your organization
  • Under User & Browser Settings -> User verification -> Verified Mode, allow the service account email address configured above to receive user data
  • Under User & Browser Settings -> Device Settings -> Enrollment and Access -> Verified mode, allow full access to the same service account email address.

Locally

  • Initialize the local CA, run ./ca/init.sh
  • Save the 'json credentials file' as google-client-secrets.json

Tests

mvn clean package
java -jar target/verified-access-service-*.jar

...

# get signing certificate
curl -v localhost:8080/ca.crt | openssl x509 -text -noout -inform pem

# get current crl
curl -v localhost:8080/ca.crl | openssl crl -text -noout -inform der

# sign a certificate using the signing script
cat spkac-to-sign.req | ca/sign.sh 

# sign a certificate based on the PSKAC response from Google API => certificate in der-base64
curl -X POST -H 'Content-type:application/json' [email protected] localhost:8080/sign/[email protected]

# actual call: auth a challenge request and get the signed certificate
curl -X POST -H 'Content-type:application/json' [email protected] localhost:8080/authenticate

Additional links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published