Skip to content

Instantly share code, notes, and snippets.

Sebastien Blanc sebastienblanc

  • Red Hat
  • Vallauris
Block or report user

Report or block sebastienblanc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3d69c3b5d7ffdeeed4dc7afd3c27b521
Error: Error compiling query code (in /tmp/SVM-7967788261001287877/PosixDirectives.c). Compiler command gcc /tmp/SVM-7967788261001287877/PosixDirectives.c -o /tmp/SVM-7967788261001287877/PosixDirectives output included error: /tmp/SVM-7967788261001287877/PosixDirectives.c:1822:101: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGRARP’?
method com.oracle.svm.core.posix.headers.Unistd._SC_XOPEN_XCU_VERSION()
C file contents around line 1822:
/tmp/SVM-7967788261001287877/PosixDirectives.c:1821: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:_SC_XOPEN_XCU_VERSION:PropertyInfo:value=%lX\n", _SC_XOPEN_XCU_VERSION);
/tmp/SVM-7967788261001287877/PosixDirectives.c:1822: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:SIOCGSTAMP:PropertyInfo:size=%lu\n", sizeof(SIOCGSTAMP));
/tmp/SVM-7967788261001287877/PosixDirectives.c:1823: printf("NativeCodeInfo:PosixDirectives:ConstantInfo:SIOCGSTAMP:PropertyInfo:signedness=$%s$\n", (IS_CONST_UNSIGNED(SIOCGS
View gist:2c85a2a24dfce0771360847470ff937b
Request headers :
POST /app-profile-jsp/profile.jsp HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Content-Length: 17
Cache-Control: max-age=0
Origin: http://localhost:8080
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36
View gist:a71fe8dfdf7449a3053f21a9447d540d
2019-03-08 18:49:47,239 DEBUG [io.sma.jwt.aut.pri.KeyLocationResolver] (XNIO-1 task-1) Failed to read location as JWK(S): java.security.NoSuchAlgorithmException: RSA KeyFactory not available
at java.security.KeyFactory.<init>(KeyFactory.java:138)
at java.security.KeyFactory.getInstance(KeyFactory.java:172)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.tryAsJWKx(KeyLocationResolver.java:113)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.resolveKey(KeyLocationResolver.java:68)
at org.jose4j.jwt.consumer.JwtConsumer.processContext(JwtConsumer.java:205)
at org.jose4j.jwt.consumer.JwtConsumer.process(JwtConsumer.java:416)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator.validate(MpJwtValidator.java:84)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator_ClientProxy.validate(Unknown Source)
at org.wildfly.security.auth.realm.token.TokenSecurityRealm$TokenRealmIdentity.validateToken(TokenSecurityRealm.java:207)
View gist:a991e5af7728f8fe6098e4f0bf0f1132
2019-03-08 18:29:38,549 DEBUG [io.sma.jwt.aut.pri.KeyLocationResolver] (XNIO-1 task-1) Failed to read location as JWK(S): javax.json.stream.JsonParsingException: JsonParser#getObject() or JsonParser#getObjectStream() is valid only for START_OBJECT parser state. But current parser state is VALUE_NUMBER
at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:114)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.tryAsJWKx(KeyLocationResolver.java:98)
at io.smallrye.jwt.auth.principal.KeyLocationResolver.resolveKey(KeyLocationResolver.java:68)
at org.jose4j.jwt.consumer.JwtConsumer.processContext(JwtConsumer.java:205)
at org.jose4j.jwt.consumer.JwtConsumer.process(JwtConsumer.java:416)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator.validate(MpJwtValidator.java:84)
at io.quarkus.smallrye.jwt.runtime.auth.MpJwtValidator_ClientProxy.validate(Unknown Source)
at org.wildfly.security.auth.realm.token.TokenSecurityRealm$TokenRealmIdentity.validateToken(TokenSecurityRealm.java:207)
at or
View gist:fcb777fa6615edfc010e5b0c35802deb
curl --cacert server-cert.pem --cert client-keystore.p12 -v --data "client_id=x509client&username=seb&password=seb&grant_type=password" https://localhost:8443/auth/realms/master/protocol/openid-connect/token | jq
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 8443 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
View sebiproxy
# is the url for retrieve the openid configuration - normally the <server>/auth/realm/<realm_name>
discovery-url: http://localhost:8180/auth/realms/summit
# the client id for the 'client' application
client-id: product-app
client-secret: 6dcb4195-c172-4da8-9ddf-e8fce0f1c0df
# the interface definition you wish the proxy to listen, all interfaces is specified as ':<port>'
listen: localhost:5000
redirection-url: http://localhost:5000
# log all incoming requests
View withRedirect.yaml
# is the url for retrieve the openid configuration - normally the <server>/auth/realm/<realm_name>
discovery-url: http://localhost:8180/auth/realms/summit
# the client id for the 'client' application
client-id: product-app
client-secret: 6dcb4195-c172-4da8-9ddf-e8fce0f1c0df
# the interface definition you wish the proxy to listen, all interfaces is specified as ':<port>'
listen: localhost:5000
redirection-url: http://localhost:5000
# log all incoming requests
View bearer-only.yaml
# is the url for retrieve the openid configuration - normally the <server>/auth/realm/<realm_name>
discovery-url: http://localhost:8180/auth/realms/summit
# the client id for the 'client' application
client-id: go-rest
# the interface definition you wish the proxy to listen, all interfaces is specified as ':<port>'
listen: 127.0.0.1:4000
# log all incoming requests
enable-logging: true
# log in json format
View installa kc
---
class: middle, light
# Installation et déploiement de Keycloak
* "Surcouche" de WildFly
* Installation à partir des sources
* Installation à partir des distributions
* Images Docker
* Persistence
View gist:8c947ed52b03b5d404a409345db382cb
package fr.devoxx.beerbootapp;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.keycloak.adapters.AdapterDeploymentContext;
import org.keycloak.adapters.KeycloakConfigResolver;
import org.keycloak.adapters.KeycloakDeployment;
import org.keycloak.adapters.spi.HttpFacade;
import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver;
import org.keycloak.adapters.springsecurity.KeycloakConfiguration;
You can’t perform that action at this time.