View error
15:50:21 app | time="2017-11-28 15:50:21" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg="request headers" Accept=[*/*] Content-Length=[284] Content-Type=[application/json] User-Agent=[curl/7.51.0] pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg=payload pkg=log.LogRequest.func1 raw="{\"client_id\":\"5dec5fdb-09e3-4453-b73f-5c828832b28e\",\"client_secret\":\"witsecret\",\"code\":\"uss.xkn7PJ2F-nrhzef79g2HzbphGow6xMy5_A2eq-egKbs.fd162ea9-f6cb-441d-a8f4-dc16509136c9.239ed057-eec1-425b-a7eb-f4b338c94cdd\",\"grant_type\":\"authorization_code\",\"redirect_uri\":\"http://quora.com\"}" req_id=8xORjvjQDW-6
15:50:21 app | time="2017-11-28 15:50:21" level=info msg="request started" POST="/api/token" action=Exchange ctrl=token from="::1" pkg=log.LogRequest.func1 req_id=8xORjvjQDW-6
15:50:21
View OSIO login workflow
Login Flow
---------------------------------------------------------------------------------------------
1. http://localhost:8089/api/login
2. Sends a request to keycloak( which is provider here).
https://sso.prod-preview.openshift.io/auth/realms/fabric8-test/protocol/openid-connect/auth?access_type=online&client_id=fabric8-online-platform&redirect_uri=http%3A%2F%2Flocalhost%3A8089%2Fapi%2Flogin&response_type=code&scope=user%3Aemail&state=c236a447-52c2-4761-986b-6d4ae1bff887
View testrealm.json
{
"realm": "tobedeleted",
"enabled": true,
"loginTheme": "fabric8",
"privateKey": "MIICXAIBAAKBgQCyM+ODEAdKbhj+IJUjqONXXYLtmpLODrbtLB4zPXf174OsenO68aGJPUBWgZ3mRN9nU19A8m75ZfnKKkRxfrrawQgoT7Ww5cDhaHuAEYF2+tlfet0Fvc6Q8j/LUPsWoG59Dx5N6yX2lu9p/JcFyZdPNb3FJGHWaXScVDPgufS0ZQIDAQABAoGAfKIl4Sh4sOnHuRT4ufQI7LWOOLf/LPbFoaNVi+jV2cAmi58pCfqtS9r3AImu8boBtbZtzHLCgtN7nJVrQSWtcNvH6HhutSxV3dzyH1G4fRsyL8BVUnqqaLGpR+J1Tq3s3QmP8iZoNrfg3YK1j6fEoasHW994AzN7PEN9+NM5HAECQQD3bC+aT6dLvO3KaUfLqj2s6kc0NGleHAT3n5mi2xjC82qSRipJxe/7/oa/aF1kc9xWAI6tlU8AETQKGjduLnYlAkEAuGFkraxg+xFpIp4XolqXt5vK/G/7+A4I6COdXOkYOzOnxptxDKnVJI+WQYWBKF7jigNHXCtwW+z7UcuUVXtRQQJALF8Jdmn8fZenKVqSFpM0NlNZa6JOlyL9PQ8xNUSHf0a6APt2T/6gWBfAQIlN3lrs07uL2tNg9IkhRQKImEjaxQJBALgKPvw7+/Gfx1mOg/jChH35O/wNq2xGVg2gvwpmgJFXVjigH4+MVfxQdqKgJ/OsA2NXMnuFwHmBarqSglVw6gECQGp+2Jg27pv1psU3ONcy0AUkAuIoObdC6z9WLEWXp08TWmycIFEVopiXIRNmlmkzwYxc4MJFBEvP6MBrmDsYK2k=",
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyM+ODEAdKbhj+IJUjqONXXYLtmpLODrbtLB4zPXf174OsenO68aGJPUBWgZ3mRN
View bootstrap.sh
#!/bin/bash
REALM="master"
CONTENT_OF_THE_JSONFILE=$(<testrealm.json)
export TKN=`curl -k -v -X POST "http://keycloak-kc-kishan.dev.rdu2c.fabric8.io/auth/realms/$REALM/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
View bootstrap.sh
#!/bin/bash
REALM="master"
export TKN=`curl -k -v -X POST "http://keycloak-keycloak.192.168.42.52.nip.io/auth/realms/$REALM/protocol/openid-connect/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token'`
View bootstrap.go
package bootstrap
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
)
// KeycloakConfig contains basic configuration data for Keycloak
View bootstrap.go
package bootstrap
import (
"bytes"
"encoding/base64"
"fmt"
"net/http"
"strings"
yaml "gopkg.in/yaml.v2"
View Keyclock error
`06:00:08,022 ERROR [io.undertow.request] (default task-20) UT005023: Exception handling request to /auth/admin/realms: org.jboss.resteasy.spi.UnhandledException: org.keycloak.component.ComponentValidationException: Failed to decode private key
at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:76)
at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:212)
at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:168)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:411)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispat
View Error
[ksagathi@dhcp-0-128 minishift]$ ls
LICENSE minishift README.adoc
[ksagathi@dhcp-0-128 minishift]$ ./minishift start
-- Checking if KVM driver is installed ...
Driver is available at /usr/local/bin/docker-machine-driver-kvm ... OK
-- Starting local OpenShift cluster using 'kvm' hypervisor ...
-- Starting Minishift VM ... OK
-- Checking for IP address ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging 8.8.8.8 ... FAIL
View setup.py
# -*- coding: utf-8 -*-
#
# This file is part of Zenodo.
# Copyright (C) 2015, 2016 CERN.
#
# Zenodo is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#