<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    paulwong

    #

    懷舊框架集合

         摘要: 最近在公司用JUP框架做項目,發現這個框架是別人基于SpringSide封裝的,所以打算學習下,SpringSide,其中遇到了很多坑,做個記錄,網上關于這方面的資料都有些老了,而且SpringSide最新的版本是SpringSide-Utils,老一點的版本為v4.2.2.GA,以下分別對這兩個版本分別介紹下,主要內容來自于網上。一些資料:Github源碼地址:  https://gi...  閱讀全文

    posted @ 2020-10-09 19:14 paulwong 閱讀(309) | 評論 (0)編輯 收藏

    線上JVM工具

    https://github.com/vipshop/vjtools

    posted @ 2020-10-09 19:12 paulwong 閱讀(259) | 評論 (0)編輯 收藏

    基于Spring Cloud的快速開發腳手架&最佳實踐總結

    Spring Cloud 你懂的
    Keycloak 微服務認證授權
    Jenkins 持續集成
    SonarQube 代碼質量控制


    https://gitee.com/itmuch/spring-cloud-yes

    posted @ 2020-10-09 10:48 paulwong 閱讀(552) | 評論 (0)編輯 收藏

    Keycloak初探

    Keycloak是Jboss出品的做認證和授權的WEB程序,根據OPENIDC協議,OPENID是做認證,OAUTH2.0是做授權,OPENIDC則將這兩者整合。

    有提供一套WEB界面維護用戶、應用與角色。

    Ream則可認為是多租戶,每個租戶的應用和用戶數據是隔離的。

    http://10.80.27.69:8180/auth/realms/quickstart/.well-known/openid-configuration 提供當前所有的API節點。
    get_access_token_from_public_client:
    curl --location --request POST 'http://10.80.27.69:8180/auth/realms/quickstart/protocol/openid-connect/token' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --data-urlencode 'username=alice' \
    --data-urlencode 'password=123456' \
    --data-urlencode 'client_id=app-springboot-public' \
    --data-urlencode 'grant_type=password' \
    | jq

    ./get_access_token_from_confidential_client.sh
    curl --location --request POST 'http://10.80.27.69:8180/auth/realms/quickstart/protocol/openid-connect/token' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --data-urlencode 'client_id=app-springboot-confidential' \
    --data-urlencode 'client_secret=3acf7692-49cb-4c45-9943-6f3dba512dae' \
    --data-urlencode 'grant_type=client_credentials' \
    | jq

    訪問一個ACCESS TYPE為Bare only的應用的一個API:
    access_token=$(curl \
    -d "client_id=app-springboot-public" \
    -d "username=alice" \
    -d "password=123456" \
    -d "grant_type=password" \
    "http://10.80.27.69:8180/auth/realms/quickstart/protocol/openid-connect/token" \
    | jq -r '.access_token')

    #echo $access_token

    curl -H "Authorization: Bearer $access_token" 'http://10.80.27.69:8182/products' | jq

    訪問用戶信息:
    access_token=$(curl \
    -d "client_id=app-springboot-public" \
    -d "username=alice" \
    -d "password=123456" \
    -d "grant_type=password" \
    "http://10.80.27.69:8180/auth/realms/quickstart/protocol/openid-connect/token" | jq -r '.access_token')


    curl -H "Authorization: Bearer $access_token" http://10.80.27.69:8180/auth/realms/quickstart/protocol/openid-connect/userinfo | jq














    posted @ 2020-10-08 13:56 paulwong 閱讀(736) | 評論 (0)編輯 收藏

    配置docker倉庫鏡像,即使用私服

    編輯/etc/docker/daemon.json,加入以下節點:
    {
      "registry-mirrors": [
        "https://hub-mirror.c.163.com",
        "https://mirror.baidubce.com"
      ]
    }


    posted @ 2020-09-30 15:40 paulwong 閱讀(464) | 評論 (0)編輯 收藏

    以非root用戶運行docker

    [root@dev69 ~]$ groupadd docker
    [root@dev69 ~]$ usermod -aG docker $USER
    [root@dev69 ~]$ reboot
    [paul@dev69 ~]$ docker run hello-world

    docker 安裝:
    [root@dev69 ~]$ yum install -y docker
    [root@dev69 ~]$ systemctl enable docker
    [root@dev69 ~]$ systemctl start docker

    posted @ 2020-09-30 15:10 paulwong 閱讀(489) | 評論 (0)編輯 收藏

    MAVEN私服、DOCKER私服、NPM私服,專治各種私服

    Using Nexus 3 as Your Repository – Part 1: Maven Artifacts
    https://blog.sonatype.com/using-nexus-3-as-your-repository-part-1-maven-artifacts

    Using Nexus 3 as Your Repository – Part 2: npm Packages
    https://blog.sonatype.com/using-nexus-3-as-your-repository-part-2-npm-packages

    Using Nexus 3 as Your Repository – Part 3: Docker Images
    https://blog.sonatype.com/using-nexus-3-as-your-repository-part-3-docker-images

    微服務--使用Nexus Repository Manager 3.0搭建私有Docker倉庫
    https://www.hifreud.com/2018/06/05/02-nexus-docker-repository/

    posted @ 2020-09-30 14:24 paulwong 閱讀(378) | 評論 (0)編輯 收藏

    keycloak 資源

    Keycloak為現代應用和服務提供開源的認證和訪問管理,即通常所說的認證和授權。

    Keycloak支持OpenID、OAuth 2.0和SAML 2.0協議;支持用戶注冊、用戶管理、權限管理;支持OTP,支持代理OpenID、SAML 2.0 IDP,支持GitHub、LinkedIn等第三方登錄,支持整合LDAP和Active Directory;支持自定義認證流程、自定義用戶界面,支持國際化。

    有用戶管理界面,可用于API的認證和用戶的認證,用戶認證需人為輸入用戶名與密碼,API則憑BARE TOKEN即可認證。

    Spring Boot/Angular整合Keycloak實現單點登錄
    https://blog.51cto.com/7308310/2446368

    僅十分鐘即可接入Spring Boot/Vue前後端分離應用實現SSO單點登錄
    https://kknews.cc/code/a6am5pj.html

    SpringBoot整合KeyCloak權限管理
    https://qianmoq.com/fuwuduan/springboot/springbootzhenghekeycloakquanxianguanli.html

    使用Spring Gateway和KeyCloak構建一個OIDC認證系統
    https://zhuanlan.zhihu.com/p/138578359

    A Quick Guide to Using Keycloak with Spring Boot
    https://www.baeldung.com/spring-boot-keycloak

    Keycloak與微服務的整合
    https://gitee.com/itmuch/spring-cloud-yes/blob/master/doc/keycloak-learn/Keycloak%E6%90%AD%E5%BB%BA%E6%89%8B%E6%8A%8A%E6%89%8B%E6%93%8D%E4%BD%9C%E6%8C%87%E5%8D%97.md

    RedHat
    https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.4/html/securing_applications_and_services_guide/openid_connect_3

    https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.4/html-single/authorization_services_guide/index

    https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.4/

    posted @ 2020-09-25 15:46 paulwong 閱讀(389) | 評論 (0)編輯 收藏

    linux shell 中檢查文件夾是否存在

    To check if a directory exists in a shell script, you can use the following:
    if [ -d "$DIRECTORY" ]; then
      # Control will enter here if $DIRECTORY exists.
    fi

    Or to check if a directory doesn't exist:
    if [ ! -d "$DIRECTORY" ]; then
      # Control will enter here if $DIRECTORY doesn't exist.
    fi

    posted @ 2020-09-25 11:11 paulwong 閱讀(384) | 評論 (0)編輯 收藏

    linux shell 中函數的調用

    function fun1(){
      return 34
    }

    function fun2(){
      local res=$(fun1)
      echo $res
    }

    上面調用fun1時,打印結果卻不返回34,這是為何?原來函數只是返回結果成功與否的值,并不能自定義。因此要改成下面這種寫法

    function fun1(){
      echo 34
    }

    function fun2(){
      local res=$(fun1)
      echo $res
    }

    https://stackoverflow.com/questions/17336915/return-value-in-a-bash-function

    posted @ 2020-09-25 11:06 paulwong 閱讀(375) | 評論 (0)編輯 收藏

    僅列出標題
    共115頁: First 上一頁 13 14 15 16 17 18 19 20 21 下一頁 Last 
    主站蜘蛛池模板: 日产久久强奸免费的看| 男男gvh肉在线观看免费| va天堂va亚洲va影视中文字幕| 亚洲人成网网址在线看| 亚洲欧美日韩中文无线码| 暖暖免费中文在线日本| 日本免费中文视频| 国产在线a免费观看| 国产一精品一aⅴ一免费| 国产亚洲精品成人a v小说| 777亚洲精品乱码久久久久久 | www.黄色免费网站| 国产精品嫩草影院免费| 国产亚洲日韩一区二区三区| 91嫩草私人成人亚洲影院| 亚洲人成未满十八禁网站| 九九视频高清视频免费观看| 99视频在线免费看| 超pen个人视频国产免费观看| 亚洲真人日本在线| 亚洲精品美女在线观看| 曰批免费视频播放免费| 69视频在线观看免费| 国产精品久久香蕉免费播放| 亚洲精品无码久久千人斩| 亚洲AV无码成人专区| 一级毛片aa高清免费观看| 最近2022中文字幕免费视频| 亚洲成A人片在线观看无码3D| 亚洲视频中文字幕| 美女羞羞免费视频网站| 99在线免费观看视频| 国产伦一区二区三区免费| 亚洲欧洲免费视频| 免费亚洲视频在线观看| 中文字幕在线观看免费视频 | 国产精品永久免费10000| 亚洲高清成人一区二区三区| 亚洲白色白色永久观看| 一级人做人a爰免费视频| 成视频年人黄网站免费视频|