{"id":50814,"date":"2022-03-11T00:00:00","date_gmt":"2022-03-11T08:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/"},"modified":"2025-11-14T07:55:35","modified_gmt":"2025-11-14T15:55:35","slug":"implementing-authlib-with-griddb-part-ii","status":"publish","type":"post","link":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/","title":{"rendered":"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u4ee5\u524d\u306e\u30d6\u30ed\u30b0\u3067\u3001GridDB\u3067<a href=\"https:\/\/docs.authlib.org\/en\/latest\/\">authlib<\/a>\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u30d6\u30ed\u30b0\u306f<a href=\"https:\/\/griddb.net\/en\/blog\/using-authlib-with-griddb\/\">\u3053\u3061\u3089<\/a>\u304b\u3089\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u305d\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001OAuth\u306e\u6982\u5ff5\u3092\u7d39\u4ecb\u3057\u3001\u8a8d\u8a3c\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u7528\u3068\u5b9f\u88c5\u306e\u57fa\u672c\u7684\u306a\u4f5c\u696d\u30d5\u30ed\u30fc\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001\u3088\u308a\u73fe\u5b9f\u7684\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3092\u5b9f\u8a3c\u3059\u308b\u305f\u3081\u306b\u3001\u5b9f\u969b\u306e\u30d6\u30e9\u30a6\u30b6\u5185\u3067Authlib\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u751f\u6210\u3057\u3001\u305d\u306e\u60c5\u5831\u3092\u76f4\u63a5GridDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001<a href=\"https:\/\/docs.griddb.net\/gettingstarted\/using-source-code\/\">GridDB\u3092\u5b9f\u884c<\/a>\u3057<a href=\"https:\/\/docs.griddb.net\/gettingstarted\/python\/\">python\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/a>\u304c\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7<\/h2>\n<p>\u307e\u305a\u59cb\u3081\u306b\u3001<code>test<\/code>\u3068\u3044\u3046\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3001\u540c\u540d\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u6b21\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002<code>FLASK_APP=app.py flask run --host=0.0.0.0<\/code> \u30d6\u30e9\u30a6\u30b6\u3092\u958b\u304f\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\uff08user=test, password=test\uff09\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u306f\u30c8\u30fc\u30af\u30f3\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u5f8c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u65b0\u6a5f\u80fd<\/h2>\n<h3>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u6982\u8981<\/h3>\n<p>\u6b21\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u7c21\u5358\u306a\u8aac\u660e\u306f\u3001<a href=\"https:\/\/www.oauth.com\/oauth2-servers\/client-registration\/client-id-secret\/\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a2\u30d7\u30ea\u3084api\u3092\u4f7f\u7528\u3059\u308b\u958b\u767a\u8005\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30a2\u30bf\u30c3\u30ab\u30fc\u304b\u3089\u30a2\u30d7\u30ea\u3092\u4fdd\u8b77\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>OAuth\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304c\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3088\u3046\u3068\u3059\u308b\u969b\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bOAuth\u30b5\u30fc\u30d0\u30fc\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u306e\u63d0\u4f9b\u3092\u6c42\u3081\u307e\u3059\u3002\u3053\u308c\u306f\u4e8c\u91cd\u8a8d\u8a3c\u3068\u547c\u3070\u308c\u3001\u5358\u7d14\u306a\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30b7\u30b9\u30c6\u30e0\u3088\u308a\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u30b3\u30f3\u30c6\u30ca\uff08<code>TOKENS<\/code>\u306a\u3069\uff09\u306b\u3064\u3044\u3066\u306f\u524d\u56de\u306e\u30d6\u30ed\u30b0\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u30d6\u30ed\u30b0\u3067\u306f<code>CLIENTS<\/code>\u30b3\u30f3\u30c6\u30ca\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u6bd4\u8f03\u7684\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ca\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID\u3001\u540d\u524d\u3001\u30b0\u30e9\u30f3\u30c8\u30bf\u30a4\u30d7\u306a\u3069\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u884c\u3092\u5165\u308c\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u5f8c\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u30b9\u30ad\u30fc\u30de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">        conInfo = griddb.ContainerInfo(\"CLIENTS\",\n            [[\"client_id\", griddb.Type.STRING],\n             [\"client_name\", griddb.Type.STRING],\n             [\"client_uri\", griddb.Type.STRING],\n             [\"grant_types\", griddb.Type.STRING_ARRAY],\n             [\"redirect_uri\", griddb.Type.STRING_ARRAY],\n             [\"response_types\", griddb.Type.STRING_ARRAY],\n             [\"scope\", griddb.Type.STRING],\n             [\"token_endpoint_auth_method\", griddb.Type.STRING],\n             [\"client_secret\", griddb.Type.STRING]],\n            griddb.ContainerType.COLLECTION, True)<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u898b\u305b\u308bpython Flask\u30b5\u30fc\u30d0\u30fc\u306f\u3001\u30b3\u30fc\u30c9\u81ea\u4f53\u306b\u3059\u3067\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3092\u3042\u3089\u304b\u3058\u3081\u30ed\u30fc\u30c9\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4e00\u7a2e\u306e\u6982\u5ff5\u5b9f\u8a3c\uff08PoC\uff09\u3068\u3057\u3066\u3001\u30e6\u30fc\u30b6\u306f\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u6709\u52b9\u306a\u30c8\u30fc\u30af\u30f3\u3092\u3059\u3050\u306b\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u304c\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308c\u3070\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306b\u3001\u6709\u52b9\u306a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u6e21\u3055\u308c\u308b\u307e\u3067\u3001\u30c8\u30fc\u30af\u30f3\u306f\u751f\u6210\u3055\u308c\u305a\u306b\u3001\u30b5\u30fc\u30d0\u30fc\u306f\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u3067\u5fdc\u7b54\u3059\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4f7f\u7528\u3057\u305f\u3044URI\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u30b0\u30e9\u30f3\u30c8\u30bf\u30a4\u30d7\u306b\u306f <code>password<\/code> \u3092\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e API \u3084\u30c7\u30fc\u30bf\u306b\u9069\u5207\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30c8\u30fc\u30af\u30f3\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u306e\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30e6\u30fc\u30b6\u30fcID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2022\/02\/create_client.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2022\/02\/create_client.png\" alt=\"\" width=\"272\" height=\"839\" class=\"aligncenter size-full wp-image-28065\" srcset=\"\/wp-content\/uploads\/2022\/02\/create_client.png 272w, \/wp-content\/uploads\/2022\/02\/create_client-97x300.png 97w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2022\/02\/cleint_created.png\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2022\/02\/cleint_created.png\" alt=\"\" width=\"924\" height=\"73\" class=\"aligncenter size-full wp-image-28066\" srcset=\"\/wp-content\/uploads\/2022\/02\/cleint_created.png 924w, \/wp-content\/uploads\/2022\/02\/cleint_created-300x24.png 300w, \/wp-content\/uploads\/2022\/02\/cleint_created-768x61.png 768w, \/wp-content\/uploads\/2022\/02\/cleint_created-600x47.png 600w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/a><\/p>\n<h3>\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u60c5\u5831\u306e\u4fdd\u5b58\u3068\u7167\u4f1a<\/h3>\n<h4>Cookie<\/h4>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u6a5f\u80fd\u3068\u5171\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30c8\u30fc\u30af\u30f3\u3068\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u4fdd\u5b58\u3059\u308b\u30d6\u30e9\u30a6\u30b6Cookie\u304c\u65b0\u305f\u306b\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002<a href=\"https:\/\/en.wikipedia.org\/wiki\/HTTP_cookie\">Cookie<\/a>\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u73fe\u5728\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\uff08\u3064\u307e\u308a\u30d6\u30e9\u30a6\u30b6\uff09\u306b\u4fdd\u5b58\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306e\u30d1\u30b1\u30c3\u30c8\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u304a\u6c17\u306b\u5165\u308a\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u8a2a\u308c\u305f\u3068\u304d\u306b\u3001\u597d\u307f\u306e\u8a2d\u5b9a\u3084\u5c65\u6b74\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u5b9f\u88c5\u3067\u306f\u3001\u30e6\u30fc\u30b6\u304c\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001\u30c8\u30fc\u30af\u30f3\u304cGridDB\u306b\u4fdd\u5b58\u3055\u308c\u3001\u3055\u3089\u306b\u30d6\u30e9\u30a6\u30b6\u306bCookie\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u3067\u30c6\u30b9\u30c8\u3059\u308b\u306b\u306f\u3001\u958b\u767a\u30c4\u30fc\u30eb\u3092\u958b\u304d\u3001\u300cApplication\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u79fb\u52d5\u3057\u3066\u3001Cookie\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u898b\u3064\u3051\u307e\u3059\u3002\u305d\u306e\u4e2d\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3068\u30e6\u30fc\u30b6\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u969b\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30c8\u30fc\u30af\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>GridDB\u3092\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u5b9f\u969b\u306eWeb\u30b5\u30a4\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408\u306e\u624b\u9806\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u9032\u3080\u3088\u3046\u3001Cookie\u306e\u5229\u7528\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002Cookie\u3092\u4f7f\u3048\u3070\u3001\u30e6\u30fc\u30b6\u306f\u9762\u5012\u306a\u624b\u7d9a\u304d\u306a\u3057\u306b\u4ee5\u524d\u306e\u72b6\u614b\u306b\u623b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u660e\u793a\u7684\u306b\u6307\u793a\u3057\u306a\u3044\u9650\u308a\u3001\u8a8d\u8a3c\u60c5\u5831\u3092\u4fdd\u5b58\u3057\u3001\u65e2\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u72b6\u614b\u306b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u3069\u306e\u3088\u3046\u306b\u4f5c\u6210\u3055\u308c\u3001GridDB\u30b5\u30fc\u30d0\u306b\u4fdd\u5b58\u3055\u308c\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u4fdd\u5b58\u3068\u7167\u4f1a<\/h4>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u3068 \u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u6a5f\u80fd\u306f <code>create_client()<\/code> \u95a2\u6570\u306b\u7531\u6765\u3057\u3001 <code>routes.py<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308b\u540c\u540d\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308a\u307e\u3059\u3002\u6700\u521d\u306b\u3001\u3053\u306e\u95a2\u6570\u306f\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u304a\u3046\u3068\u3057\u3066\u3044\u308b\u73fe\u5728\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304a\u308a\u3001\u6709\u52b9\u306a\u30c8\u30fc\u30af\u30f3\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u306e\u5b9f\u969b\u306e\u30af\u30a8\u30ea\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7a2e\u985e\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\u3082\u3057 <code>GET<\/code> \u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3042\u308c\u3070\u3001\u524d\u8ff0\u3057\u305f\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u7d44\u307f\u5408\u308f\u305b\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b <code>create_client.html<\/code> \u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002\u3082\u3057 <code>POST<\/code> \u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3042\u308c\u3070\u3001<code>GET<\/code> \u30ea\u30af\u30a8\u30b9\u30c8\u30da\u30fc\u30b8\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u3082\u3068\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u751f\u6210\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p><code>POST<\/code> \u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u306b\u5bfe\u5fdc\u3059\u308b\u4e00\u610f\u306e\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3001 <code>issued_at<\/code> \u5024\u3082\u751f\u6210\u3057\u307e\u3059\u3002\u6b21\u306b\u3001client_secret \u3092 (gen_salt \u3092\u4f7f\u3063\u3066) \u751f\u6210\u3057\u3001\u5909\u6570\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u751f\u6210\u3055\u308c\u305f\u306e\u3067\u3001GridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b<code>\u5165\u529b<\/code>\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c6\u30ca\u306e\u30b9\u30ad\u30fc\u30de\u304c\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3053\u307e\u3067\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u305d\u306e\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u308c\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">    cn.put([client_id, form[\"client_name\"], form[\"client_uri\"], split_by_crlf(form[\"grant_type\"]),\n            split_by_crlf(form[\"redirect_uri\"]), split_by_crlf(form[\"response_type\"]), \n            form[\"scope\"], form[\"token_endpoint_auth_method\"], client_secret])\n<\/code><\/pre>\n<\/div>\n<p>\u307b\u3068\u3093\u3069\u306e\u5024\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3067\u76f4\u63a5\u5165\u529b\u3057\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u3068 \u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306f <code>werkzeug.security<\/code> \u306e <code>gen_salt<\/code> \u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u751f\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6a5f\u80fd\u5168\u4f53\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">@bp.route('\/create_client', methods=('GET', 'POST'))\ndef create_client():\n    user = get_session_token()\n    if not user:\n        return redirect('\/')\n    if request.method == 'GET':\n        return render_template('create_client.html')\n\n    client_id = gen_salt(24)\n    client_id_issued_at = int(time.time())\n\n    \n    form = request.form\n\n    if form['token_endpoint_auth_method'] == 'none':\n        client_secret = ''\n    else:\n        client_secret = gen_salt(48)\n\n    conInfo = griddb.ContainerInfo(\"CLIENTS\",\n        [[\"client_id\", griddb.Type.STRING],\n         [\"client_name\", griddb.Type.STRING],\n         [\"client_uri\", griddb.Type.STRING],\n         [\"grant_types\", griddb.Type.STRING_ARRAY],\n         [\"redirect_uri\", griddb.Type.STRING_ARRAY],\n         [\"response_types\", griddb.Type.STRING_ARRAY],\n         [\"scope\", griddb.Type.STRING],\n         [\"token_endpoint_auth_method\", griddb.Type.STRING],\n         [\"client_secret\", griddb.Type.STRING]],\n        griddb.ContainerType.COLLECTION, True)\n\n    cn = gridstore.put_container(conInfo)\n\n    q = cn.query(\"select * where client_name = '\"+form['client_name']+\"' or client_uri = '\"+form['client_uri']+\"'\")\n    rs = q.fetch(False)\n    if rs.has_next():\n        return render_template('create_client.html', error = \"Duplicate\")\n\n    cn.put([client_id, form[\"client_name\"], form[\"client_uri\"], split_by_crlf(form[\"grant_type\"]),\n            split_by_crlf(form[\"redirect_uri\"]), split_by_crlf(form[\"response_type\"]), \n            form[\"scope\"], form[\"token_endpoint_auth_method\"], client_secret])\n\n    return render_template('create_client.html', client_id=client_id, client_secret=client_secret)<\/code><\/pre>\n<\/div>\n<h4>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306e\u78ba\u8a8d<\/h4>\n<p><code>models.py<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 ID \u3068\u30b0\u30e9\u30f3\u30c8\u30bf\u30a4\u30d7\u306e\u771f\u507d\u3092\u554f\u3044\u5408\u308f\u305b\u308b\u305f\u3081\u306e\u95a2\u6570\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e2\u3064\u306e\u95a2\u6570\u306f\u3001<code>check_client_secret<\/code>\u3068<code>check_grant_type<\/code> \u3068\u3044\u3046\u540d\u524d\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b0\u30e9\u30f3\u30c8\u30bf\u30a4\u30d7\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30c8\u30fc\u30af\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u305f\u3081\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001\u7c21\u5358\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30b0\u30e9\u30f3\u30c8\u30bf\u30a4\u30d7\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5358\u306b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u7279\u5225\u306a\u30c8\u30fc\u30af\u30f3\u3092\u4ed8\u4e0e\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p><code>CLIENTS<\/code> \u30b3\u30f3\u30c6\u30ca\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30b0\u30e9\u30f3\u30c8\u30bf\u30a4\u30d7\u3092\u78ba\u8a8d\u3059\u308b\u30af\u30a8\u30ea\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">            cn = gridstore.get_container(\"CLIENTS\")\n            q = cn.query(\"select * where client_id = '\"+self.get_client_id()+\"'\")<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u306f client_secret\u3092\u78ba\u8a8d\u3059\u308b\u306e\u3068\u540c\u3058\u65b9\u6cd5\u3067\u3059\u3002\u30af\u30a8\u30ea\u30fc\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">            cn = gridstore.get_container(\"CLIENTS\")\n            q = cn.query(\"select * where client_id = '\"+self.get_client_id()+\"' and client_secret='\"+client_secret+\"'\")<\/code><\/pre>\n<\/div>\n<p>\u5024\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306f <code>True<\/code> \u3092\u3001\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f <code>False<\/code> \u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30e6\u30fc\u30b6\u30c8\u30fc\u30af\u30f3\u306e\u554f\u3044\u5408\u308f\u305b<\/h4>\n<p>\u5148\u306b\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u306e\u30c8\u30fc\u30af\u30f3\u306f\u30d6\u30e9\u30a6\u30b6\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u306e\u5024\u304c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3001\u691c\u8a3c\u3055\u308c\u306a\u3044\u9650\u308a\u3001\u4f55\u306e\u610f\u5473\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u691c\u8a3c\u306e\u305f\u3081\u306b\u3001\u8a8d\u8a3c\u30b5\u30fc\u30d0\u306f <code>get_session_token()<\/code> \u3068\u547c\u3070\u308c\u308b\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u6a5f\u80fd\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">def get_session_token():\n    print(\"Session=\",session)\n    if 'token' in session:\n        try:\n            cn = gridstore.get_container(\"TOKENS\")\n            print(\"Session: \" + session['token'])\n            token = session['token']\n            que = \"select * where token = '\"+token+\"'\"\n            q = cn.query(que)\n            print(session['token']) \n            q = cn.query(\"select * where token = '\"+session['token']+\"'\")\n            rs = q.fetch(False)\n            print(rs.has_next())\n            if rs.has_next():\n                return session['token']\n        except griddb.GSException as e:\n            for i in range(e.get_error_stack_size()):\n                print(\"[\", i, \"]\")\n                print(e.get_error_code(i))\n                print(e.get_location(i))\n                print(e.get_message(i))\n                print (\"ISSUE: \")\n                return None\n    return None<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u95a2\u6570\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u4fdd\u8b77\u3055\u308c\u305f\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3059\u308b\u305f\u3073\u306b\u547c\u3073\u51fa\u3055\u308c\u3001\u57fa\u672c\u7684\u306b\u6709\u52b9\u306a\u30c8\u30fc\u30af\u30f3\u3092\u5f37\u5236\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u304c\u6700\u521d\u306b\u884c\u3046\u3053\u3068\u306f\u3001\u30e6\u30fc\u30b6\u304c\u30d6\u30e9\u30a6\u30b6\u306b\u4fdd\u5b58\u3055\u308c\u305f &#8220;token&#8221; \u3068\u3044\u3046\u30c7\u30fc\u30bf\u306e\u30d1\u30b1\u30c3\u30c8\u3092\u6301\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3082\u3057\u30e6\u30fc\u30b6\u30fc\u304c\u30a8\u30e9\u30fc\u306a\u304f\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308c\u3070\u3001token\u3068\u3044\u3046\u30bb\u30c3\u30b7\u30e7\u30f3\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u5b58\u5728\u3059\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001GridDB\u306b\u5bfe\u3057\u3066\u7c21\u5358\u306a\u554f\u3044\u5408\u308f\u305b\u3092\u884c\u3044\u3001\u30e6\u30fc\u30b6\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u4fdd\u5b58\u3057\u305f\u30c8\u30fc\u30af\u30f3\u3068GridDB\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30c8\u30fc\u30af\u30f3\u304c\u4e00\u81f4\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4e00\u81f4\u3057\u305f\u5834\u5408\u3001\u95a2\u6570\u306f\u30c8\u30fc\u30af\u30f3\u30fb\u30c7\u30fc\u30bf\u3092\u8fd4\u3057\u3066\u3001\u6b8b\u308a\u306e\u8a8d\u8a3c\u4fdd\u8b77\u3055\u308c\u305f\u30b5\u30fc\u30d3\u30b9\u306f\u8a31\u53ef\u3055\u308c\u3001\u901a\u5e38\u901a\u308a\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306fOAuth\u3092\u4f7f\u3063\u305fGridDB\u306e\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002GridDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u5171\u6709\u3059\u308b\u3053\u3068\u304c\u3044\u304b\u306b\u7c21\u5358\u3067\u3042\u308b\u304b\u3068\u3044\u3046\u3053\u3068\u304c\u304a\u5206\u304b\u308a\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u4ee5\u524d\u306e\u30d6\u30ed\u30b0\u3067\u3001GridDB\u3067authlib\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u30d6\u30ed\u30b0\u306f\u3053\u3061\u3089\u304b\u3089\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u305d\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001OAuth\u306e\u6982\u5ff5\u3092\u7d39\u4ecb\u3057\u3001\u8a8d\u8a3c\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u7528\u3068\u5b9f\u88c5\u306e\u57fa\u672c\u7684\u306a\u4f5c\u696d\u30d5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":50262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u306f\u3058\u3081\u306b\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/implementing-authlib-with-griddb-part-ii\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/implementing-authlib-with-griddb-part-ii\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-11T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:55:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb.net\/wp-content\/uploads\/2021\/12\/authlib-11.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1160\" \/>\n\t<meta property=\"og:image:height\" content=\"653\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Israel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Israel\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/\"},\"author\":{\"name\":\"Israel\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\"},\"headline\":\"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II\",\"datePublished\":\"2022-03-11T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:55:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/\"},\"wordCount\":72,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2021\/12\/authlib-11.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/\",\"name\":\"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2021\/12\/authlib-11.png\",\"datePublished\":\"2022-03-11T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:55:35+00:00\",\"description\":\"\u306f\u3058\u3081\u306b\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2021\/12\/authlib-11.png\",\"contentUrl\":\"\/wp-content\/uploads\/2021\/12\/authlib-11.png\",\"width\":1160,\"height\":653},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\",\"name\":\"Israel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"caption\":\"Israel\"},\"url\":\"https:\/\/griddb.net\/ja\/author\/israel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II | GridDB: Open Source Time Series Database for IoT","description":"\u306f\u3058\u3081\u306b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/implementing-authlib-with-griddb-part-ii\/","og_locale":"ja_JP","og_type":"article","og_title":"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II | GridDB: Open Source Time Series Database for IoT","og_description":"\u306f\u3058\u3081\u306b","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/implementing-authlib-with-griddb-part-ii\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2022-03-11T08:00:00+00:00","article_modified_time":"2025-11-14T15:55:35+00:00","og_image":[{"width":1160,"height":653,"url":"https:\/\/griddb.net\/wp-content\/uploads\/2021\/12\/authlib-11.png","type":"image\/png"}],"author":"Israel","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"Israel","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/"},"author":{"name":"Israel","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740"},"headline":"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II","datePublished":"2022-03-11T08:00:00+00:00","dateModified":"2025-11-14T15:55:35+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/"},"wordCount":72,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2021\/12\/authlib-11.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/","name":"GridDB\u3067Authlib\u3092\u5b9f\u88c5\u3059\u308b Part II | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2021\/12\/authlib-11.png","datePublished":"2022-03-11T08:00:00+00:00","dateModified":"2025-11-14T15:55:35+00:00","description":"\u306f\u3058\u3081\u306b","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/implementing-authlib-with-griddb-part-ii\/#primaryimage","url":"\/wp-content\/uploads\/2021\/12\/authlib-11.png","contentUrl":"\/wp-content\/uploads\/2021\/12\/authlib-11.png","width":1160,"height":653},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740","name":"Israel","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","caption":"Israel"},"url":"https:\/\/griddb.net\/ja\/author\/israel\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50814"}],"version-history":[{"count":1,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50814\/revisions"}],"predecessor-version":[{"id":51644,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50814\/revisions\/51644"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media\/50262"}],"wp:attachment":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}