Home > Backend Development > PHP Tutorial > oauth server client_id生成!

oauth server client_id生成!

WBOY
Release: 2016-06-06 20:21:17
Original
1883 people have browsed it

如何优雅的生成优雅的client_id和client_key!

回复内容:

如何优雅的生成优雅的client_id和client_key!

uuid方案不错.
或者由client的一些属性来做一个hash也行的.
看的场景.

楼主不要过于担忧client_id重复问题,一般项目的数据量不会重复。
如果非纠结这个问题,请参考:
http://segmentfault.com/q/1010000004018998/a-1020000004211216

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template