Skip to content

Instantly share code, notes, and snippets.

Avatar
🏃‍♀️
keep going

ohoroyoi

🏃‍♀️
keep going
View GitHub Profile
@egoing
egoing / The OAuth 2.0 Authorization Framework: Bearer Token Usage.md
Last active Sep 14, 2020
Bearer Authentication 에 대해서 살펴봅니다.
View The OAuth 2.0 Authorization Framework: Bearer Token Usage.md

소개

이 글은 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 Sep 18, 2020
javascript var, let, const 차이점
View var-let-const.md

var, let, const 차이점은?

  • varfunction-scoped이고, let, constblock-scoped입니다.

  • function-scopedblock-scoped가 무슨말이냐?

var(function-scoped)

jsfiddle 참고주소

@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active Sep 16, 2020
AWS 공인 개발자 - 어소시에이트 수험 가이드
View AWSCertifiedDeveloperUnofficialStudyGuide.md
@danswick
danswick / index.html
Created Oct 30, 2015
save from leaflet draw
View index.html
<!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 13, 2019 — forked from cojohn/basic-http-auth-node.js
Basic HTTP Authorization Header in Node.js
View basic-http-auth-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 Sep 4, 2020
JavaScript functions to calculate combinations of elements in Array.
View combinations.js
/**
* 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 Jun 15, 2012
Leaflet control button example
View leaflet-button-control.js
L.Control.Button = L.Control.extend({
options: {
position: 'bottomleft'
},
initialize: function (options) {
this._button = {};
this.setButton(options);
},
You can’t perform that action at this time.