Commit 02d3448
committed
Store IdentLine->pg_user as an AuthToken
While system_user was stored as an AuthToken in IdentLine, pg_user was
stored as a plain string. This commit changes the code as we start
storing pg_user as an AuthToken too.
This does not have any functional changes, as all the operations on
pg_user only use the string from the AuthToken. There is no regexp
compiled and no check based on its quoting, yet. This is in preparation
of more features that intend to extend its capabilities, like support
for regexps and group membership.
Author: Jelte Fennema
Discussion: https://postgr.es/m/CAGECzQRNow4MwkBjgPxywXdJU_K3a9+Pm78JB7De3yQwwkTDew@mail.gmail.com1 parent 647fa50 commit 02d3448
File tree
3 files changed
+13
-11
lines changed- src
- backend
- libpq
- utils/adt
- include/libpq
3 files changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2800 | 2800 | | |
2801 | 2801 | | |
2802 | 2802 | | |
2803 | | - | |
| 2803 | + | |
2804 | 2804 | | |
2805 | 2805 | | |
2806 | 2806 | | |
| |||
2865 | 2865 | | |
2866 | 2866 | | |
2867 | 2867 | | |
2868 | | - | |
| 2868 | + | |
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
| |||
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
2878 | | - | |
| 2878 | + | |
2879 | 2879 | | |
2880 | 2880 | | |
2881 | 2881 | | |
| |||
2884 | 2884 | | |
2885 | 2885 | | |
2886 | 2886 | | |
2887 | | - | |
2888 | | - | |
2889 | | - | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
2890 | 2890 | | |
2891 | 2891 | | |
2892 | 2892 | | |
| |||
2895 | 2895 | | |
2896 | 2896 | | |
2897 | 2897 | | |
2898 | | - | |
| 2898 | + | |
2899 | 2899 | | |
2900 | 2900 | | |
2901 | 2901 | | |
| |||
2921 | 2921 | | |
2922 | 2922 | | |
2923 | 2923 | | |
2924 | | - | |
| 2924 | + | |
2925 | 2925 | | |
2926 | 2926 | | |
2927 | 2927 | | |
2928 | 2928 | | |
2929 | 2929 | | |
2930 | | - | |
| 2930 | + | |
2931 | 2931 | | |
2932 | 2932 | | |
2933 | 2933 | | |
| |||
3074 | 3074 | | |
3075 | 3075 | | |
3076 | 3076 | | |
| 3077 | + | |
3077 | 3078 | | |
3078 | 3079 | | |
3079 | 3080 | | |
| |||
3086 | 3087 | | |
3087 | 3088 | | |
3088 | 3089 | | |
| 3090 | + | |
3089 | 3091 | | |
3090 | 3092 | | |
3091 | 3093 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments