Skip to content

Instantly share code, notes, and snippets.

@nicdev
nicdev / laravel-socialite-linkedin-oauth.php
Last active October 31, 2024 12:14
Log in with LinkedIn OpenID Laravel Socialite example
Route::get('/auth/linkedin', function () {
return Socialite::driver('linkedin-openid')
->scopes(['openid', 'profile', 'email'])
->redirect();
});
Route::get('/auth/linkedin/callback', function () {
$user = Socialite::driver('linkedin-openid')->user();
dd($user);
@nicdev
nicdev / UpdateSecrets.php
Last active August 16, 2021 19:09
Artisan command to update Vapor (AWS) secrets in bulk
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class UpdateSecrets extends Command
{
/**
* The name and signature of the console command.
swagger: '2.0'
info:
description: This is a demo Jukebox server for the NCR Unconference
version: 1.0.0
title: NCR Tunes
contact:
email: [email protected]
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
@nicdev
nicdev / trending-threats.json
Created October 24, 2018 20:38
[GET] RFI /collections/trending-threats
@nicdev
nicdev / health-all.json
Last active October 4, 2018 18:56
[RFI] /health/all
{
"status": "overall_status_good",
"dependencies": [
{
"status": "tis_tfm_status_good",
"details": "OK",
"endpoint": "https://isc-common-dev-eude-01.ite1.isc.ibmcloudsecurity.com/tis/tfm/api/v1"
},
{
"status": "tis_gdb_status_good",
@nicdev
nicdev / health.json
Created October 4, 2018 18:53
[RFI] /health
{
"status": "health_status_good",
"overall_status": {
"status": "overall_status_good",
"dependencies": []
},
"http_status": 200,
"details": ""
}
@nicdev
nicdev / casefiles.json
Created September 25, 2018 15:53
[RFI] GET /xfe/casefiles/c96eca2a00ac32586643f1d68766e1cc
{
"created": "2018-09-25T14:20:25.491Z",
"owner": {
"name": "Chris R",
"uuid": "http://www.ibm.com/310002HES8",
"verified": "iris",
"isDisabled": false
},
"title": "Fake Finance Apps Found in Google's Play Store",
"caseFileID": "c96eca2a00ac32586643f1d68766e1cc",
@nicdev
nicdev / top-threats.json
Created September 21, 2018 13:04
[RFI] GET /collections/top-threats
[
{
"type": "x-xfe-collection",
"id": "x-xfe-collection--5d4d8ba4-d111-74d4-9f45-e7326430a209",
"collectionTitle": "HMRC Tax Refund Scam via Phishing Campaign",
"collectionWikiContent": "",
"collectionId": "5d4d8ba4d11174d49f45e7326430a209",
"owner": "",
"tags": [
"advisory",
@nicdev
nicdev / advisories.json
Created September 21, 2018 10:48
[RFI] GET /collections/advisories
[
{
"type": "x-xfe-collection",
"id": "x-xfe-collection--5d4d8ba4-d111-74d4-9f45-e7326430a209",
"collectionTitle": "HMRC Tax Refund Scam via Phishing Campaign",
"collectionWikiContent": "",
"collectionId": "5d4d8ba4d11174d49f45e7326430a209",
"owner": "",
"tags": [
"advisory",
@nicdev
nicdev / threat.json
Created September 18, 2018 15:43
Threat for AmIA
{
"type": "bundle",
"id": "bundle--cf20f99b-3ed2-4a9f-b4f1-d660a7fc8241",
"spec_version": "2.0",
"objects": [
{
"type": "intrusion-set",
"id": "intrusion-set--da1065ce-972c-4605-8755-9cd1074e3b5a",
"created": "2015-05-15T09:00:00.000Z",
"modified": "2015-05-15T09:00:00.000Z",