Skip to content

Instantly share code, notes, and snippets.

View ohoroyoi's full-sized avatar
๐Ÿƒโ€โ™€๏ธ
keep going

ohoroyoi

๐Ÿƒโ€โ™€๏ธ
keep going
View GitHub Profile
@egoing
egoing / The OAuth 2.0 Authorization Framework: Bearer Token Usage.md
Last active October 11, 2023 03:57
Bearer Authentication ์— ๋Œ€ํ•ด์„œ ์‚ดํŽด๋ด…๋‹ˆ๋‹ค.

์†Œ๊ฐœ

์ด ๊ธ€์€ Oauth๋ฅผ ์ด์šฉํ•ด์„œ access token์„ ํš๋“ํ•œ ํ›„์— api์— ์ ‘์†ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์„ค๋ช…ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

์šฐ์„  ๊ณต๋ถ€ํ•ด์•ผ ํ•  ๊ฒƒ๋“ค

์ด ๊ธ€์€ WEB2 OAuth2 ์ˆ˜์—…๊ณผ WEB2 HTTP ์ˆ˜์—…์— ์˜์กดํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. OAuth์™€ HTTP๋ฅผ ์ž˜ ๋ชจ๋ฅด์‹ ๋‹ค๋ฉด ์ด ์ˆ˜์—…๋“ค์„ ๋จผ์ € ๋ณด์‹œ๊ณ  ์ด ๊ธ€์„ ๋ณผ ๊ฒƒ์„ ๊ถŒํ•ด๋“œ๋ฆฝ๋‹ˆ๋‹ค.

Bearer Authentication๋ž€?

API์— ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” access token์„ API ์„œ๋ฒ„์— ์ œ์ถœํ•ด์„œ ์ธ์ฆ์„ ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ์ธ์ฆ ๋ฐฉ๋ฒ•์ด Bearer Authentication ์ž…๋‹ˆ๋‹ค. ์ด ๋ฐฉ๋ฒ•์€ OAuth๋ฅผ ์œ„ํ•ด์„œ ๊ณ ์•ˆ๋œ ๋ฐฉ๋ฒ•์ด๊ณ , RFC 6750์— ํ‘œ์ค€๋ช…์„ธ์„œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

@LeoHeo
LeoHeo / var-let-const.md
Last active December 15, 2024 01:07
javascript var, let, const ์ฐจ์ด์ 

var, let, const ์ฐจ์ด์ ์€?

  • var๋Š” function-scoped์ด๊ณ , let, const๋Š” block-scoped์ž…๋‹ˆ๋‹ค.

  • function-scoped์™€ block-scoped๊ฐ€ ๋ฌด์Šจ๋ง์ด๋ƒ?

var(function-scoped)

jsfiddle ์ฐธ๊ณ ์ฃผ์†Œ

@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active January 14, 2025 02:29
AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ

AWS ํ•™์Šต ๋งํฌ์ง‘ ์‹œ๋ฆฌ์ฆˆ

  • AWS ํ•™์Šต ์ž๋ฃŒ์ง‘ http://bit.ly/aws-study-resource
  • AWS ๊ณต์ธ ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/sacertguide
  • AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/devcertguide
  • AWS ๋ณด์•ˆ ๊ด€๋ จ ์ปจํ…์ธ  ๋ชจ์Œ์ง‘ http://bit.ly/seccontents

AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ(http://bit.ly/devcertguide)

@danswick
danswick / index.html
Created October 30, 2015 22:07
save from leaflet draw
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Demo</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<!--Add mapbox.js -->
@SunboX
SunboX / basic-http-auth-node.js
Last active May 1, 2023 19:02 — forked from cojohn/basic-http-auth-node.js
Basic HTTP Authorization Header in Node.js
var key = <my key>,
secret = <my secret>,
https = require("https"),
https_options = {
"host": <host>,
"path": <path>,
"port": <port>,
"method": <method>,
"headers": {
"Authorization": "Basic " + new Buffer(key + ":" + secret, "utf8").toString("base64")
@axelpale
axelpale / combinations.js
Last active July 7, 2023 10:37
JavaScript functions to calculate combinations of elements in Array.
/**
* Copyright 2012 Akseli Palรฉn.
* Created 2012-07-15.
* Licensed under the MIT license.
*
* <license>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
@ejh
ejh / leaflet-button-control.js
Created June 15, 2012 08:11
Leaflet control button example
L.Control.Button = L.Control.extend({
options: {
position: 'bottomleft'
},
initialize: function (options) {
this._button = {};
this.setButton(options);
},