Skip to content

Instantly share code, notes, and snippets.

JavaScript adapter

{project_name} comes with a client-side JavaScript library that can be used to secure HTML5/JavaScript applications. The JavaScript adapter has built-in support for Cordova applications.

A good practice is to include the JavaScript adapter in your application using a package manager like NPM or Yarn. The keycloak-js package is available on the following locations:

/var/www/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:626:
object(GuzzleHttp\Psr7\Response)[541]
private 'reasonPhrase' => string 'Unauthorized' (length=12)
private 'statusCode' => int 401
private 'headers' =>
array (size=7)
'Referrer-Policy' =>
array (size=1)
0 => string 'no-referrer' (length=11)
'Strict-Transport-Security' =>
@des1roer
des1roer / ci.yml
Last active October 31, 2022 07:20
stages:
- build
- test
- review
- deploy
vendor_update:
stage: build
only:
- schedules
- web
[
{
"id": 8665,
"message": "{\"result\":{\"email_id\":\"22461716505\"}}",
"email_id": 8835,
"created_at": "2022-05-24 04:08:14.000000 +00:00",
"prev_state": "queued"
},
{
"id": 15122,
<?php
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
###< postgres settings ###
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('doctrine', [
'dbal' => [
[
{
"id": 370,
"description_plain": "Squadra Corse is the motorsport department of Automobili Lamborghini. Born in 2013 within the Research & Development department, Squadra Corse provides an integrated approach to driving experiences of the brand; from driving course programs with road vehicles to motorsport competitions, through the Lamborghini Super Trofeo or championships of the GT class. Lamborghini is the only company in the world to win both 24 Hours of Daytona and the 12 Hours of Sebring in GTD Class in two consecutive years. Another premiere in 2019: The GT3 won the Triple Crown of the Blancpain GT Series with the titles in the categories Overall, Endurance and Sprint. In 2020 Lamborghini celebrated third victory at the 24 Hours of Daytona with sensational one-two finish.",
"owner": null,
"website": "https://www.lamborghini.com/",
"facebook": "https://www.facebook.com/Lamborghini",
"twitter": "https://twitter.com/lamborghini",
"instagram": "https://www.instagram.com/Lamb
[
{
"id": 15534,
"parent_id": 1191,
"parent_type": "season",
"description_plain": "The livestream of the Blancpain GT Asia series qualifying at Suzuka, Japan.",
"fulldescription": null,
"episode_number": 7,
"production_company": null,
"expand_images": "[{\"regular\":\"images/episode/id15535/expandingPreview1/ace4a15fc4624bc544201bcb4f85356929fdec81.jpg960.jpg\",\"retina\":\"images/episode/id15535/expandingPreview1/ace4a15fc4624bc544201bcb4f85356929fdec81.jpg1920.jpg\",\"pico\":\"images/episode/id15535/expandingPreview1/ace4a15fc4624bc544201bcb4f85356929fdec81.jpg240.jpg\"},{\"regular\":\"images/episode/id15535/expandingPreview2/0cd5835e646acc3011a8767c18509d7f024e58b0.jpg960.jpg\",\"retina\":\"images/episode/id15535/expandingPreview2/0cd5835e646acc3011a8767c18509d7f024e58b0.jpg1920.jpg\",\"pico\":\"images/episode/id15535/expandingPreview2/0cd5835e646acc3011a8767c18509d7f024e58b0.jpg240.jpg\"},{\"regular\":\"images/episode/id15535/expandingPreview3/877d017ae73faa09e7c22fe3b560
Request URL: https://t.motorsport.tv/admin/content/program/edit/7786
Request Method: PUT
Status Code: 200 OK
Remote Address: 13.32.123.36:443
Referrer Policy: strict-origin-when-cross-origin
Access-Control-Allow-Headers: Bearer, Country, Region, DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
Access-Control-Allow-Methods: GET, POST, OPTIONS, DELETE, PUT, HEAD
Access-Control-Allow-Origin: https://t.motorsport.tv
Cache-Control: no-cache
Connection: keep-alive
// Merge receives two structs, and merges them excluding fields with tag name: `structs`, value "-"
func Merge(dst, src interface{}) {
s := reflect.ValueOf(src)
d := reflect.ValueOf(dst)
if s.Kind() != reflect.Ptr || d.Kind() != reflect.Ptr {
return
}
for i := 0; i < s.Elem().NumField(); i++ {
v := s.Elem().Field(i)
fieldName := s.Elem().Type().Field(i).Name
[
{
"epopen": false,
"sopen": true,
"id": 1387,
"parent_id": 1387,
"parent_type": "season",
"description_plain": "Retour sur les moments marquants de l'Histoire des sports mécaniques qui se sont passés dans la semaine du 1er au 6 octobre !",
"fulldescription": null,
"episode_number": 3,